From dd46de10ec6fcc9a168a4419d1bdb6e2b06ac83f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 20 Mar 2015 13:45:37 +0100 Subject: [PATCH] export correct Layout.minimumWidth recalculate size when text on a tab changes BUG:342964 Change-Id: I7fd17557e92de29a7d1b1e897caf17e60bfe101e --- src/declarativeimports/plasmacomponents/qml/TabBar.qml | 3 +++ src/declarativeimports/plasmacomponents/qml/TabButton.qml | 1 + 2 files changed, 4 insertions(+) diff --git a/src/declarativeimports/plasmacomponents/qml/TabBar.qml b/src/declarativeimports/plasmacomponents/qml/TabBar.qml index b48f4b012..165acbc6e 100644 --- a/src/declarativeimports/plasmacomponents/qml/TabBar.qml +++ b/src/declarativeimports/plasmacomponents/qml/TabBar.qml @@ -84,6 +84,9 @@ FocusScope { implicitWidth: layout.implicitWidth implicitHeight: layout.implicitHeight + Layout.minimumWidth: tabBarLayout.minimumWidth + Layout.minimumHeight: tabBarLayout.minimumHeight + Accessible.role: Accessible.PageTabList Item { diff --git a/src/declarativeimports/plasmacomponents/qml/TabButton.qml b/src/declarativeimports/plasmacomponents/qml/TabButton.qml index a4d2422ad..5c1488de8 100644 --- a/src/declarativeimports/plasmacomponents/qml/TabButton.qml +++ b/src/declarativeimports/plasmacomponents/qml/TabButton.qml @@ -114,6 +114,7 @@ Item { internal.tabBar.currentTab = root } onVisibleChanged: root.parent.childrenChanged() + onTextChanged: root.parent.childrenChanged() } QtObject {