diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-12-04 11:26:25 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-12-04 11:26:25 +0100 |
commit | cc177ea2edba40f928c47bcff87d887e2f088c72 (patch) | |
tree | 9d37615708180580e4cba0e782913ebaef68351a /components/package/contents/ui | |
parent | 3f93933d66f872c9954ef0fbb6b3ef9f2ab8178d (diff) | |
download | kube-cc177ea2edba40f928c47bcff87d887e2f088c72.tar.gz kube-cc177ea2edba40f928c47bcff87d887e2f088c72.zip |
port accountswitcher to qqc2
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r-- | components/package/contents/ui/AccountSwitcher.qml | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml index 1ef2f267..8004308a 100644 --- a/components/package/contents/ui/AccountSwitcher.qml +++ b/components/package/contents/ui/AccountSwitcher.qml | |||
@@ -17,9 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | import QtQuick 2.4 | 19 | import QtQuick 2.4 |
20 | import QtQuick.Controls 1.3 | ||
21 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
22 | |||
23 | import QtQuick.Controls 2.0 as Controls2 | 21 | import QtQuick.Controls 2.0 as Controls2 |
24 | 22 | ||
25 | import org.kde.kirigami 1.0 as Kirigami | 23 | import org.kde.kirigami 1.0 as Kirigami |
@@ -27,14 +25,13 @@ import org.kde.kirigami 1.0 as Kirigami | |||
27 | import org.kube.framework.domain 1.0 as KubeFramework | 25 | import org.kube.framework.domain 1.0 as KubeFramework |
28 | import org.kube.components 1.0 as KubeComponents | 26 | import org.kube.components 1.0 as KubeComponents |
29 | 27 | ||
30 | Button { | 28 | Controls2.Button { |
31 | id: accountSwitcher | 29 | id: accountSwitcher |
32 | 30 | ||
33 | Layout.fillWidth: true | 31 | Layout.fillWidth: true |
34 | Layout.fillHeight: true | 32 | Layout.fillHeight: true |
35 | 33 | ||
36 | text: "Account Switcher" | 34 | text: "Account Switcher" |
37 | tooltip: "switch accounts, edit them and add new ones" | ||
38 | 35 | ||
39 | onClicked: { | 36 | onClicked: { |
40 | popup.open() | 37 | popup.open() |
@@ -66,7 +63,7 @@ Button { | |||
66 | height: Kirigami.Units.gridUnit + Kirigami.Units.smallSpacing * 1 | 63 | height: Kirigami.Units.gridUnit + Kirigami.Units.smallSpacing * 1 |
67 | width: listView.width | 64 | width: listView.width |
68 | 65 | ||
69 | Button { | 66 | Controls2.Button { |
70 | 67 | ||
71 | anchors { | 68 | anchors { |
72 | verticalCenter: parent.verticalCenter | 69 | verticalCenter: parent.verticalCenter |
@@ -88,14 +85,14 @@ Button { | |||
88 | } | 85 | } |
89 | } | 86 | } |
90 | 87 | ||
91 | Button { | 88 | Controls2.Button { |
92 | 89 | ||
93 | anchors { | 90 | anchors { |
94 | verticalCenter: parent.verticalCenter | 91 | verticalCenter: parent.verticalCenter |
95 | left: parent.left | 92 | left: parent.left |
96 | } | 93 | } |
97 | 94 | ||
98 | iconName: "view-refresh" | 95 | //iconName: "view-refresh" |
99 | text: "Sync" | 96 | text: "Sync" |
100 | enabled: syncAction.ready | 97 | enabled: syncAction.ready |
101 | 98 | ||
@@ -147,15 +144,16 @@ Button { | |||
147 | source: accountFactory.icon | 144 | source: accountFactory.icon |
148 | } | 145 | } |
149 | 146 | ||
150 | Label { | 147 | Controls2.Label { |
151 | text: model.name === "" ? accountFactory.name : model.name | 148 | text: model.name === "" ? accountFactory.name : model.name |
152 | } | 149 | } |
153 | Button { | 150 | //FIXME port to qqc2 |
154 | visible: model.showStatus | 151 | // Button { |
155 | iconName: model.statusIcon | 152 | // visible: model.showStatus |
156 | } | 153 | // source: model.statusIcon |
154 | // } | ||
157 | } | 155 | } |
158 | Button { | 156 | Controls2.Button { |
159 | 157 | ||
160 | anchors { | 158 | anchors { |
161 | right: parent.right | 159 | right: parent.right |