From 82214670602985982769594ad795aff424bce8bd Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 31 Jan 2018 15:20:29 +0100 Subject: Introduced setup() signal for views. onCompleted is apparently not guaranteed to be called after all properties have been set (reply broke). The onSetup handler is now the standard handler for views to setup their initial state. --- framework/qml/View.qml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'framework') diff --git a/framework/qml/View.qml b/framework/qml/View.qml index 0065c206..e5a4c274 100644 --- a/framework/qml/View.qml +++ b/framework/qml/View.qml @@ -32,6 +32,12 @@ FocusScope { property int count: contentItems.length default property alias contentItems: content.data + //This signal will be emitted once all initial properties have been set and the view is ready to load + signal setup() + Controls2.StackView.onActivated: { + root.setup() + } + onCurrentIndexChanged: showRelevantSplits() Component.onCompleted: showRelevantSplits() -- cgit v1.2.3