aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/fusion/TabButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/fusion/TabButton.qml')
-rw-r--r--src/quickcontrols/fusion/TabButton.qml13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/quickcontrols/fusion/TabButton.qml b/src/quickcontrols/fusion/TabButton.qml
index add96a8fa3..088a6e4529 100644
--- a/src/quickcontrols/fusion/TabButton.qml
+++ b/src/quickcontrols/fusion/TabButton.qml
@@ -24,6 +24,8 @@ T.TabButton {
z: checked
+ topInset: control.checked || control.TabBar.position !== T.TabBar.Header ? 0 : 2
+
contentItem: IconLabel {
spacing: control.spacing
mirrored: control.mirrored
@@ -35,10 +37,15 @@ T.TabButton {
color: control.palette.buttonText
}
+
background: Rectangle {
- y: control.checked || control.TabBar.position !== T.TabBar.Header ? 0 : 2
- implicitHeight: 21
- height: control.height - (control.checked ? 0 : 2)
+ implicitHeight: 19
+
+ // TODO: Find out why the following binding fails to update the first tab button
+ // See QTBUG-108807
+ // y: control.checked || control.TabBar.position !== T.TabBar.Header ? 0 : 2
+ // implicitHeight: 21
+ // height: control.height - (control.checked ? 0 : 2)
border.color: Qt.lighter(Fusion.outline(control.palette), 1.1)