summaryrefslogtreecommitdiffstats
path: root/components/accounts
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-01-05 15:58:47 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-01-05 15:58:47 +0100
commitaba4edffe5a0e98ed92bb0177e89f6936c7eeb1f (patch)
tree80cdb282194b67ccdb468308f55dab3b061dc3ca /components/accounts
parent2ea57b9a9c5db3fa340cb62d40a9732af31143e0 (diff)
downloadkube-aba4edffe5a0e98ed92bb0177e89f6936c7eeb1f.tar.gz
kube-aba4edffe5a0e98ed92bb0177e89f6936c7eeb1f.zip
maildir controller based on the new kubecontroller + adjusted create-maildir-ui
Diffstat (limited to 'components/accounts')
-rw-r--r--components/accounts/CreateMaildir.qml19
1 files changed, 11 insertions, 8 deletions
diff --git a/components/accounts/CreateMaildir.qml b/components/accounts/CreateMaildir.qml
index e5d10fd4..99bde452 100644
--- a/components/accounts/CreateMaildir.qml
+++ b/components/accounts/CreateMaildir.qml
@@ -23,14 +23,14 @@ import QtQuick.Controls 2.0 as Controls2
23import org.kde.kirigami 1.0 as Kirigami 23import org.kde.kirigami 1.0 as Kirigami
24import QtQuick.Dialogs 1.0 as Dialogs 24import QtQuick.Dialogs 1.0 as Dialogs
25 25
26import org.kube.accounts.maildir 1.0 as MaildirAccount 26import org.kube.framework.accounts 1.0 as KubeAccounts
27 27
28Item { 28Item {
29 id: root 29 id: root
30 30
31 //Controller 31 //Controller
32 MaildirAccount.MaildirController { 32 KubeAccounts.MaildirController {
33 id: accountsController 33 id: account
34 } 34 }
35 35
36 //Navigation 36 //Navigation
@@ -99,10 +99,10 @@ Item {
99 id: title 99 id: title
100 Layout.fillWidth: true 100 Layout.fillWidth: true
101 101
102 text: accountsController.name 102 text: account.name
103 103
104 onTextChanged: { 104 onTextChanged: {
105 accountsController.name = text 105 account.name = text
106 } 106 }
107 } 107 }
108 108
@@ -119,7 +119,7 @@ Item {
119 119
120 enabled: false 120 enabled: false
121 121
122 text: accountsController.path 122 text: account.path
123 } 123 }
124 124
125 Controls.Button { 125 Controls.Button {
@@ -140,7 +140,7 @@ Item {
140 selectFolder: true 140 selectFolder: true
141 141
142 onAccepted: { 142 onAccepted: {
143 accountsController.path = fileDialog.fileUrl 143 account.path = fileDialog.fileUrl
144 } 144 }
145 } 145 }
146 } 146 }
@@ -175,6 +175,7 @@ Item {
175 text: "Discard" 175 text: "Discard"
176 176
177 onClicked: { 177 onClicked: {
178 //account.clear()
178 popup.close() 179 popup.close()
179 } 180 }
180 } 181 }
@@ -186,8 +187,10 @@ Item {
186 187
187 text: "Save" 188 text: "Save"
188 189
190 enabled: account.createAction.enabled
191
189 onClicked: { 192 onClicked: {
190 accountsController.createAccount() 193 account.createAction.execute()
191 popup.close() 194 popup.close()
192 } 195 }
193 } 196 }