summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-31 15:20:29 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-31 15:23:31 +0100
commit82214670602985982769594ad795aff424bce8bd (patch)
treeaa14f50af15a6abf3ae79325d06116d2f5f41def /framework
parent342b0332b895534e5a7083aa5a1cf4cf1aa120f3 (diff)
downloadkube-82214670602985982769594ad795aff424bce8bd.tar.gz
kube-82214670602985982769594ad795aff424bce8bd.zip
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.
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/View.qml6
1 files changed, 6 insertions, 0 deletions
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 {
32 property int count: contentItems.length 32 property int count: contentItems.length
33 default property alias contentItems: content.data 33 default property alias contentItems: content.data
34 34
35 //This signal will be emitted once all initial properties have been set and the view is ready to load
36 signal setup()
37 Controls2.StackView.onActivated: {
38 root.setup()
39 }
40
35 onCurrentIndexChanged: showRelevantSplits() 41 onCurrentIndexChanged: showRelevantSplits()
36 Component.onCompleted: showRelevantSplits() 42 Component.onCompleted: showRelevantSplits()
37 43