diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-11-22 18:03:24 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-11-22 18:03:24 +0100 |
commit | d6ded01b2e07981b8c1f6139b25935c8c26db0eb (patch) | |
tree | 5332ed06da83fe7af36456d0f2acb4438fd5ba4a /components/accounts | |
parent | 929324eefea8c33d586174d2f6d6c34fb06e42dd (diff) | |
download | kube-d6ded01b2e07981b8c1f6139b25935c8c26db0eb.tar.gz kube-d6ded01b2e07981b8c1f6139b25935c8c26db0eb.zip |
connect maildir controller and maildir account wizzard page
Diffstat (limited to 'components/accounts')
-rw-r--r-- | components/accounts/CreateMaildir.qml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/components/accounts/CreateMaildir.qml b/components/accounts/CreateMaildir.qml index 2b22d8b0..01f1a83d 100644 --- a/components/accounts/CreateMaildir.qml +++ b/components/accounts/CreateMaildir.qml | |||
@@ -23,13 +23,13 @@ import QtQuick.Controls 2.0 as Controls2 | |||
23 | import org.kde.kirigami 1.0 as Kirigami | 23 | import org.kde.kirigami 1.0 as Kirigami |
24 | import QtQuick.Dialogs 1.0 as Dialogs | 24 | import QtQuick.Dialogs 1.0 as Dialogs |
25 | 25 | ||
26 | import org.kube.framework.domain 1.0 as KubeFramework | 26 | import org.kube.accounts.maildir 1.0 as MaildirAccount |
27 | 27 | ||
28 | Item { | 28 | Item { |
29 | id: root | 29 | id: root |
30 | 30 | ||
31 | //Controller | 31 | //Controller |
32 | KubeFramework.AccountsController { | 32 | MaildirAccount.MaildirController { |
33 | id: accountsController | 33 | id: accountsController |
34 | } | 34 | } |
35 | 35 | ||
@@ -98,6 +98,12 @@ Item { | |||
98 | Controls.TextField { | 98 | Controls.TextField { |
99 | id: title | 99 | id: title |
100 | Layout.fillWidth: true | 100 | Layout.fillWidth: true |
101 | |||
102 | text: accountsController.name | ||
103 | |||
104 | onTextChanged: { | ||
105 | accountsController.name = text | ||
106 | } | ||
101 | } | 107 | } |
102 | 108 | ||
103 | Kirigami.Label { | 109 | Kirigami.Label { |
@@ -112,6 +118,8 @@ Item { | |||
112 | Layout.fillWidth: true | 118 | Layout.fillWidth: true |
113 | 119 | ||
114 | enabled: false | 120 | enabled: false |
121 | |||
122 | text: accountsController.path | ||
115 | } | 123 | } |
116 | 124 | ||
117 | Controls.Button { | 125 | Controls.Button { |
@@ -132,13 +140,14 @@ Item { | |||
132 | selectFolder: true | 140 | selectFolder: true |
133 | 141 | ||
134 | onAccepted: { | 142 | onAccepted: { |
135 | //root.path = fileDialog.fileUrl | 143 | accountsController.path = fileDialog.fileUrl |
136 | } | 144 | } |
137 | } | 145 | } |
138 | } | 146 | } |
139 | } | 147 | } |
140 | } | 148 | } |
141 | 149 | ||
150 | /* | ||
142 | Kirigami.Label { | 151 | Kirigami.Label { |
143 | text: "" | 152 | text: "" |
144 | } | 153 | } |
@@ -146,6 +155,7 @@ Item { | |||
146 | id: readOnly | 155 | id: readOnly |
147 | text: "Read only" | 156 | text: "Read only" |
148 | } | 157 | } |
158 | */ | ||
149 | 159 | ||
150 | Kirigami.Label { | 160 | Kirigami.Label { |
151 | text: "" | 161 | text: "" |
@@ -177,7 +187,7 @@ Item { | |||
177 | text: "Save" | 187 | text: "Save" |
178 | 188 | ||
179 | onClicked: { | 189 | onClicked: { |
180 | //accountsController.createMaildirAccount(root.name, root.path, root.readOnly) | 190 | accountsController.createAccount() |
181 | popup.close() | 191 | popup.close() |
182 | } | 192 | } |
183 | } | 193 | } |