diff options
Diffstat (limited to 'framework/qml/AccountSwitcher.qml')
-rw-r--r-- | framework/qml/AccountSwitcher.qml | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/framework/qml/AccountSwitcher.qml b/framework/qml/AccountSwitcher.qml index 0cd91adc..dd33c940 100644 --- a/framework/qml/AccountSwitcher.qml +++ b/framework/qml/AccountSwitcher.qml | |||
@@ -24,11 +24,8 @@ import QtQuick.Controls 1.4 as Controls | |||
24 | import QtQml 2.2 as QtQml | 24 | import QtQml 2.2 as QtQml |
25 | 25 | ||
26 | import org.kde.kirigami 1.0 as Kirigami | 26 | import org.kde.kirigami 1.0 as Kirigami |
27 | import org.kube.framework 1.0 as Kube | ||
27 | 28 | ||
28 | import org.kube.framework.domain 1.0 as KubeFramework | ||
29 | import org.kube.framework.accounts 1.0 as KubeAccounts | ||
30 | import org.kube.components 1.0 as KubeComponents | ||
31 | import org.kube.components.theme 1.0 as KubeTheme | ||
32 | 29 | ||
33 | Controls.ToolButton { | 30 | Controls.ToolButton { |
34 | id: accountSwitcher | 31 | id: accountSwitcher |
@@ -38,12 +35,12 @@ Controls.ToolButton { | |||
38 | 35 | ||
39 | width: parent.width | 36 | width: parent.width |
40 | 37 | ||
41 | KubeFramework.FolderController { | 38 | Kube.FolderController { |
42 | id: folderController | 39 | id: folderController |
43 | accountId: accountId | 40 | accountId: accountId |
44 | } | 41 | } |
45 | 42 | ||
46 | KubeAccounts.AccountsModel { | 43 | Kube.AccountsModel { |
47 | id: accountsModel | 44 | id: accountsModel |
48 | } | 45 | } |
49 | 46 | ||
@@ -88,7 +85,7 @@ Controls.ToolButton { | |||
88 | } | 85 | } |
89 | } | 86 | } |
90 | 87 | ||
91 | KubeComponents.PositiveButton { | 88 | Kube.PositiveButton { |
92 | id: newAccountButton | 89 | id: newAccountButton |
93 | 90 | ||
94 | anchors { | 91 | anchors { |
@@ -170,16 +167,16 @@ Controls.ToolButton { | |||
170 | enabled: false | 167 | enabled: false |
171 | states: [ | 168 | states: [ |
172 | State { | 169 | State { |
173 | name: "busy"; when: model.status == KubeAccountsFramework.AccountsModel.BusyStatus | 170 | name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus |
174 | PropertyChanges { target: statusIcon; iconName: KubeTheme.Icons.busy; visible: true } | 171 | PropertyChanges { target: statusIcon; iconName: Kube.Icons.busy; visible: true } |
175 | }, | 172 | }, |
176 | State { | 173 | State { |
177 | name: "error"; when: model.status == KubeAccountsFramework.AccountsModel.ErrorStatus | 174 | name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus |
178 | PropertyChanges { target: statusIcon; iconName: KubeTheme.Icons.error; visible: true } | 175 | PropertyChanges { target: statusIcon; iconName: Kube.Icons.error; visible: true } |
179 | }, | 176 | }, |
180 | State { | 177 | State { |
181 | name: "checkmark"; when: model.status == KubeAccountsFramework.AccountsModel.ConnectedStatus | 178 | name: "checkmark"; when: model.status == Kube.AccountsModel.ConnectedStatus |
182 | PropertyChanges { target: statusIcon; iconName: KubeTheme.Icons.connected; visible: true } | 179 | PropertyChanges { target: statusIcon; iconName: Kube.Icons.connected; visible: true } |
183 | } | 180 | } |
184 | ] | 181 | ] |
185 | } | 182 | } |
@@ -203,7 +200,7 @@ Controls.ToolButton { | |||
203 | 200 | ||
204 | Component { | 201 | Component { |
205 | id: editAccountComponent | 202 | id: editAccountComponent |
206 | KubeComponents.EditAccountDialog { | 203 | Kube.EditAccountDialog { |
207 | anchors.fill: parent | 204 | anchors.fill: parent |
208 | } | 205 | } |
209 | } | 206 | } |