Don't load Pages.qml unless we need to
commit4b57472bb730d646a0717a6245e86b81665a7b58
authorMichael Terry <michael.terry@canonical.com>
dateWed 19 Nov 2014, 14:43 (12 years ago)
parentc4d70b9
qml/Wizard/Pages.qml+1
@@ -30,6 +30,7 @@ Item {
3030
3131 id: root
3232 focus: true
33+ anchors.fill: parent
3334
3435 // These should be set by a security page and we apply the settings when
3536 // the user exits the wizard.
qml/Wizard/Wizard.qml+10−3
@@ -41,9 +41,16 @@ Showable {
4141 id: loader
4242 anchors.fill: parent
4343 active: System.wizardEnabled
44− sourceComponent: Pages {
45− anchors.fill: parent
46− background: root.background
44+ source: "Pages.qml"
45+
46+ Binding {
47+ target: loader.item
48+ property: "background"
49+ value: root.background
50+ }
51+
52+ Connections {
53+ target: loader.item
4754 onQuit: root.hide()
4855 }
4956 }