summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/package/contents/ui/AccountSwitcher.qml31
-rw-r--r--components/package/contents/ui/EditAccountDialog.qml55
-rw-r--r--components/qmldir1
3 files changed, 78 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
diff --git a/components/package/contents/ui/EditAccountDialog.qml b/components/package/contents/ui/EditAccountDialog.qml
new file mode 100644
index 00000000..2fac4227
--- /dev/null
+++ b/components/package/contents/ui/EditAccountDialog.qml
@@ -0,0 +1,55 @@
1/*
2 * Copyright (C) 2016 Michael Bohlender <michael.bohlender@kdemail.net>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18import QtQuick 2.4
19import QtQuick.Controls 1.4
20import QtQuick.Layouts 1.1
21
22import org.kde.kirigami 1.0 as Kirigami
23
24import org.kube.framework.settings 1.0 as KubeSettings
25import org.kube.framework.domain 1.0 as KubeFramework
26import org.kube.framework.theme 1.0
27
28Rectangle {
29 id: root
30
31 color: ColorPalette.border
32
33 opacity: 0.9
34
35 MouseArea {
36 anchors.fill: parent
37 onClicked: {
38 root.destroy()
39 }
40 }
41
42 Rectangle {
43 id: dialog
44 anchors.centerIn: parent
45
46 height: root.height * 0.8
47 width: root.width * 0.8
48
49 color: ColorPalette.background
50
51 MouseArea {
52 anchors.fill: parent
53 }
54 }
55}
diff --git a/components/qmldir b/components/qmldir
index 78e45c2a..8064f9d1 100644
--- a/components/qmldir
+++ b/components/qmldir
@@ -7,3 +7,4 @@ MailListView 1.0 MailListView.qml
7Settings 1.0 Settings.qml 7Settings 1.0 Settings.qml
8AccountSwitcher 1.0 AccountSwitcher.qml 8AccountSwitcher 1.0 AccountSwitcher.qml
9NewAccountDialog 1.0 NewAccountDialog.qml 9NewAccountDialog 1.0 NewAccountDialog.qml
10EditAccountDialog 1.0 EditAccountDialog.qml