diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/private/qstyleitem.cpp | 2 | ||||
| -rw-r--r-- | src/styles/Desktop/TabViewStyle.qml | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/private/qstyleitem.cpp b/src/private/qstyleitem.cpp index 1e50d3726..5c858c91f 100644 --- a/src/private/qstyleitem.cpp +++ b/src/private/qstyleitem.cpp @@ -541,7 +541,7 @@ void QStyleItem::initStyleOption() m_styleoption = new QStyleOption(); m_styleoption->styleObject = this; - m_styleoption->rect = QRect(m_paintMargins, m_paintMargins, width() - 2* m_paintMargins, height() - 2 * m_paintMargins); + m_styleoption->rect = QRect(m_paintMargins, 0, width() - 2* m_paintMargins, height()); if (isEnabled()) { m_styleoption->state |= QStyle::State_Enabled; diff --git a/src/styles/Desktop/TabViewStyle.qml b/src/styles/Desktop/TabViewStyle.qml index aff9cc10f..04b742417 100644 --- a/src/styles/Desktop/TabViewStyle.qml +++ b/src/styles/Desktop/TabViewStyle.qml @@ -83,9 +83,12 @@ Style { id: styleitem elementType: "tab" + paintMargins: 2 anchors.fill: parent - anchors.leftMargin: (selected && style == "mac") ? -1 : 0 + anchors.rightMargin: -paintMargins + (style == "mac" ? -1 : 0) + anchors.bottomMargin: -1 + anchors.leftMargin: -paintMargins hints: [tabPosition, tabpos, selectedpos] @@ -93,7 +96,6 @@ Style { text: elidedText(title, tabbarItem.elide, width - item.tabHSpace) hover: tab.hover hasFocus: tabbarItem.activeFocus && selected - anchors.margins: paintMargins Text { id: textitem |
