diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-23 18:22:06 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-23 18:22:06 +0100 |
commit | d4a89fddffbdc9ad45fc121100714f52a1bf0207 (patch) | |
tree | 1bec508940232ab6ca2317123c84a9a18ef9e652 | |
parent | c8d6782e57cf63137aa97ad7ebdd56a9d96299ad (diff) | |
download | kube-d4a89fddffbdc9ad45fc121100714f52a1bf0207.tar.gz kube-d4a89fddffbdc9ad45fc121100714f52a1bf0207.zip |
Avoid unnecessary references to app
-rw-r--r-- | components/accounts/qml/AccountWizard.qml | 6 | ||||
-rw-r--r-- | views/accounts/qml/View.qml | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/components/accounts/qml/AccountWizard.qml b/components/accounts/qml/AccountWizard.qml index 4a11ca05..9c4adbe2 100644 --- a/components/accounts/qml/AccountWizard.qml +++ b/components/accounts/qml/AccountWizard.qml | |||
@@ -39,9 +39,9 @@ Kube.Popup { | |||
39 | Component.onCompleted: { | 39 | Component.onCompleted: { |
40 | //If we only have one account type we skip the selection | 40 | //If we only have one account type we skip the selection |
41 | if (root.availableAccountPlugins.length == 1) { | 41 | if (root.availableAccountPlugins.length == 1) { |
42 | stack.push(wizardPage.createObject(app, {accountType: root.availableAccountPlugins[0]})) | 42 | stack.push(wizardPage.createObject(stack, {accountType: root.availableAccountPlugins[0]})) |
43 | } else { | 43 | } else { |
44 | stack.push(mainView.createObject(app)) | 44 | stack.push(mainView.createObject(stack)) |
45 | } | 45 | } |
46 | } | 46 | } |
47 | onCurrentItemChanged: { | 47 | onCurrentItemChanged: { |
@@ -72,7 +72,7 @@ Kube.Popup { | |||
72 | delegate: Kube.Button { | 72 | delegate: Kube.Button { |
73 | Layout.fillWidth: true | 73 | Layout.fillWidth: true |
74 | text: modelData | 74 | text: modelData |
75 | onClicked: stack.push(wizardPage.createObject(app, {accountType:modelData})) | 75 | onClicked: stack.push(wizardPage.createObject(stack, {accountType:modelData})) |
76 | } | 76 | } |
77 | } | 77 | } |
78 | } | 78 | } |
diff --git a/views/accounts/qml/View.qml b/views/accounts/qml/View.qml index 9b774907..b81579ae 100644 --- a/views/accounts/qml/View.qml +++ b/views/accounts/qml/View.qml | |||
@@ -132,9 +132,9 @@ FocusScope { | |||
132 | id: accountWizard | 132 | id: accountWizard |
133 | 133 | ||
134 | parent: ApplicationWindow.overlay | 134 | parent: ApplicationWindow.overlay |
135 | height: app.height | 135 | height: root.height |
136 | width: app.width - app.sidebarWidth | 136 | width: root.width |
137 | x: app.sidebarWidth | 137 | x: root.mapToGlobal(root.x, root.y).x |
138 | y: 0 | 138 | y: 0 |
139 | 139 | ||
140 | availableAccountPlugins: root.availableAccountPlugins | 140 | availableAccountPlugins: root.availableAccountPlugins |