Layout children in TabBarLayout right away

When Component.onCompleted is emitted, all the static children have been created,
thus we can call the layout function right away.

CHANGELOG: Fix TabBar not properly laid out initially, which could be observed in eg. Kickoff

REVIEW: 123106
This commit is contained in:
Kai Uwe Broulik 2015-03-25 18:18:38 +01:00
parent 285224a2ea
commit b7e4669db2

View File

@ -68,7 +68,7 @@ Item {
property int minimumWidth: 0 property int minimumWidth: 0
property int minimumHeight: 0 property int minimumHeight: 0
Component.onCompleted: layoutTimer.restart() Component.onCompleted: priv.layoutChildren()
onChildrenChanged: layoutTimer.restart() onChildrenChanged: layoutTimer.restart()
onWidthChanged: layoutTimer.restart() onWidthChanged: layoutTimer.restart()
onHeightChanged: layoutTimer.restart() onHeightChanged: layoutTimer.restart()