export correct Layout.minimumWidth

recalculate size when text on a tab changes
BUG:342964

Change-Id: I7fd17557e92de29a7d1b1e897caf17e60bfe101e
This commit is contained in:
Marco Martin 2015-03-20 13:45:37 +01:00
parent ecbd619566
commit dd46de10ec
2 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,9 @@ FocusScope {
implicitWidth: layout.implicitWidth implicitWidth: layout.implicitWidth
implicitHeight: layout.implicitHeight implicitHeight: layout.implicitHeight
Layout.minimumWidth: tabBarLayout.minimumWidth
Layout.minimumHeight: tabBarLayout.minimumHeight
Accessible.role: Accessible.PageTabList Accessible.role: Accessible.PageTabList
Item { Item {

View File

@ -114,6 +114,7 @@ Item {
internal.tabBar.currentTab = root internal.tabBar.currentTab = root
} }
onVisibleChanged: root.parent.childrenChanged() onVisibleChanged: root.parent.childrenChanged()
onTextChanged: root.parent.childrenChanged()
} }
QtObject { QtObject {