diff --git a/org.kde.desktop/TabBar.qml b/org.kde.desktop/TabBar.qml --- a/org.kde.desktop/TabBar.qml +++ b/org.kde.desktop/TabBar.qml @@ -28,6 +28,12 @@ T.TabBar { id: controlRoot + /** + * border: bool + * If true tab border is drawn [default]. + * When a tab bar is used with a frame it's desirable to set this to false to avoid double borders. + */ + @DISABLE_UNDER_QQC2_2_4@ palette: Kirigami.Theme.palette Kirigami.Theme.colorSet: Kirigami.Theme.Button Kirigami.Theme.inherit: false @@ -77,17 +83,5 @@ controlRoot.currentIndex = Math.max(controlRoot.currentIndex - 1, 0); } } - - Rectangle { - anchors { - left: parent.left - right: parent.right - bottom : controlRoot.position == T.TabBar.Header ? parent.bottom : undefined - top : controlRoot.position == T.TabBar.Header ? undefined : parent.top - } - height: 1 - color: Kirigami.Theme.textColor - opacity: 0.4 - } } }