diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-05-03 19:26:41 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-05-03 19:26:41 +0200 |
commit | 02a2631a38243fb21c59e94ef89b0f50df5e427a (patch) | |
tree | e6c4ce753459fa23ec5f70745fd6aa5346576cca /components | |
parent | 76bfb7517b9060ed258b95d793d2933e786c6fc8 (diff) | |
download | kube-02a2631a38243fb21c59e94ef89b0f50df5e427a.tar.gz kube-02a2631a38243fb21c59e94ef89b0f50df5e427a.zip |
move account wizard to accountsview
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/contents/ui/AccountsView.qml | 17 | ||||
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 14 |
2 files changed, 16 insertions, 15 deletions
diff --git a/components/kube/contents/ui/AccountsView.qml b/components/kube/contents/ui/AccountsView.qml index 5d0098a1..86a413e7 100644 --- a/components/kube/contents/ui/AccountsView.qml +++ b/components/kube/contents/ui/AccountsView.qml | |||
@@ -20,6 +20,7 @@ import QtQuick 2.4 | |||
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | import QtQuick.Controls 1.3 as Controls | 21 | import QtQuick.Controls 1.3 as Controls |
22 | import org.kube.framework 1.0 as Kube | 22 | import org.kube.framework 1.0 as Kube |
23 | import org.kube.components.accounts 1.0 as KubeAccounts | ||
23 | 24 | ||
24 | Rectangle { | 25 | Rectangle { |
25 | color: Kube.Colors.backgroundColor | 26 | color: Kube.Colors.backgroundColor |
@@ -32,7 +33,7 @@ Rectangle { | |||
32 | 33 | ||
33 | Item { | 34 | Item { |
34 | id: accountList | 35 | id: accountList |
35 | width: Kube.Units.gridUnit * 15 | 36 | width: Kube.Units.gridUnit * 12 |
36 | Layout.fillHeight: true | 37 | Layout.fillHeight: true |
37 | 38 | ||
38 | Kube.PositiveButton { | 39 | Kube.PositiveButton { |
@@ -44,6 +45,8 @@ Rectangle { | |||
44 | margins: Kube.Units.largeSpacing | 45 | margins: Kube.Units.largeSpacing |
45 | } | 46 | } |
46 | text: "New Account" | 47 | text: "New Account" |
48 | |||
49 | onClicked: accountWizard.open() | ||
47 | } | 50 | } |
48 | 51 | ||
49 | ListView { | 52 | ListView { |
@@ -104,4 +107,16 @@ Rectangle { | |||
104 | } | 107 | } |
105 | } | 108 | } |
106 | } | 109 | } |
110 | |||
111 | //BEGIN AccountWizard | ||
112 | KubeAccounts.AccountWizard { | ||
113 | id: accountWizard | ||
114 | |||
115 | height: app.height * 0.85 | ||
116 | width: app.width * 0.85 | ||
117 | |||
118 | x: app.width * 0.075 | ||
119 | y: app.height * 0.075 | ||
120 | } | ||
121 | //END AccountWizard | ||
107 | } | 122 | } |
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 18c1b6ec..ca3af1b9 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -23,9 +23,7 @@ import QtQuick.Layouts 1.3 | |||
23 | import QtQuick.Window 2.0 | 23 | import QtQuick.Window 2.0 |
24 | 24 | ||
25 | import QtQuick.Controls 2.0 as Controls2 | 25 | import QtQuick.Controls 2.0 as Controls2 |
26 | |||
27 | import org.kube.framework 1.0 as Kube | 26 | import org.kube.framework 1.0 as Kube |
28 | import org.kube.components.accounts 1.0 as KubeAccounts | ||
29 | 27 | ||
30 | Controls2.ApplicationWindow { | 28 | Controls2.ApplicationWindow { |
31 | id: app | 29 | id: app |
@@ -209,18 +207,6 @@ Controls2.ApplicationWindow { | |||
209 | } | 207 | } |
210 | //END Main content | 208 | //END Main content |
211 | 209 | ||
212 | //BEGIN AccountWizard | ||
213 | KubeAccounts.AccountWizard { | ||
214 | id: accountWizard | ||
215 | |||
216 | height: app.height * 0.85 | ||
217 | width: app.width * 0.85 | ||
218 | |||
219 | x: app.width * 0.075 | ||
220 | y: app.height * 0.075 | ||
221 | } | ||
222 | //END AccountWizard | ||
223 | |||
224 | //BEGIN Notification | 210 | //BEGIN Notification |
225 | Kube.NotificationPopup { | 211 | Kube.NotificationPopup { |
226 | id: notificationPopup | 212 | id: notificationPopup |