summaryrefslogtreecommitdiffstats
path: root/framework/qml/AccountSwitcher.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-05 13:00:21 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-05 13:00:21 +0200
commit5755ad47145d2985ba74354961b4127d82c516f6 (patch)
treeaa6af562b7e587be895ff5a4355270f82f3ea180 /framework/qml/AccountSwitcher.qml
parente78224a7d9ccf70aadde8c0bff1cab72e8cb7438 (diff)
downloadkube-5755ad47145d2985ba74354961b4127d82c516f6.tar.gz
kube-5755ad47145d2985ba74354961b4127d82c516f6.zip
A single framework plugin
Diffstat (limited to 'framework/qml/AccountSwitcher.qml')
-rw-r--r--framework/qml/AccountSwitcher.qml25
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
24import QtQml 2.2 as QtQml 24import QtQml 2.2 as QtQml
25 25
26import org.kde.kirigami 1.0 as Kirigami 26import org.kde.kirigami 1.0 as Kirigami
27import org.kube.framework 1.0 as Kube
27 28
28import org.kube.framework.domain 1.0 as KubeFramework
29import org.kube.framework.accounts 1.0 as KubeAccounts
30import org.kube.components 1.0 as KubeComponents
31import org.kube.components.theme 1.0 as KubeTheme
32 29
33Controls.ToolButton { 30Controls.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 }