diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-06-18 15:22:26 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-06-18 15:22:26 +0200 |
commit | fda0a475a3378f0f84e08db8b6a75bef75ea3ee2 (patch) | |
tree | ed13d8b68aa96b40063b24f501ea2a25a8060927 /components/package/contents/ui/AccountSwitcher.qml | |
parent | 2085754bf0ae9a988211e8bcfb55008c523ff3b8 (diff) | |
download | kube-fda0a475a3378f0f84e08db8b6a75bef75ea3ee2.tar.gz kube-fda0a475a3378f0f84e08db8b6a75bef75ea3ee2.zip |
add initial editAccount dialog
Diffstat (limited to 'components/package/contents/ui/AccountSwitcher.qml')
-rw-r--r-- | components/package/contents/ui/AccountSwitcher.qml | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml index 79eba65b..8f7ebb08 100644 --- a/components/package/contents/ui/AccountSwitcher.qml +++ b/components/package/contents/ui/AccountSwitcher.qml | |||
@@ -74,17 +74,17 @@ Button { | |||
74 | 74 | ||
75 | text: "Create new Account" | 75 | text: "Create new Account" |
76 | 76 | ||
77 | onClicked: { | 77 | onClicked: { |
78 | newAccountComponent.createObject(app) | 78 | newAccountComponent.createObject(app) |
79 | } | 79 | } |
80 | 80 | ||
81 | Component { | 81 | Component { |
82 | id: newAccountComponent | 82 | id: newAccountComponent |
83 | KubeComponents.NewAccountDialog { | 83 | KubeComponents.NewAccountDialog { |
84 | id: settings | 84 | id: settings |
85 | anchors.fill: parent | 85 | anchors.fill: parent |
86 | } | ||
87 | } | 86 | } |
87 | } | ||
88 | } | 88 | } |
89 | 89 | ||
90 | Button { | 90 | Button { |
@@ -160,9 +160,22 @@ Button { | |||
160 | opacity: hovered ? 1 : 0.7 | 160 | opacity: hovered ? 1 : 0.7 |
161 | visible: accountDelegate.containsMouse | 161 | visible: accountDelegate.containsMouse |
162 | text: "edit" | 162 | text: "edit" |
163 | |||
164 | onClicked: { | ||
165 | editAccountComponent.createObject(app) | ||
166 | } | ||
163 | } | 167 | } |
164 | } | 168 | } |
165 | } | 169 | } |
170 | |||
171 | Component { | ||
172 | id: editAccountComponent | ||
173 | |||
174 | KubeComponents.EditAccountDialog { | ||
175 | id: editAccount | ||
176 | anchors.fill: parent | ||
177 | } | ||
178 | } | ||
166 | } | 179 | } |
167 | } | 180 | } |
168 | } \ No newline at end of file | 181 | } \ No newline at end of file |