diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-03 22:30:07 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-03 22:30:07 +0100 |
commit | fd31aa9b05ea215e8071cf76fe21ec746204f3a3 (patch) | |
tree | fd656cf389060e6a5c7ef3253d3337e0a48864c8 /applications | |
parent | 54c3e5912b0d64bad5a1c66bc96f0552ac5e21f5 (diff) | |
download | kube-fd31aa9b05ea215e8071cf76fe21ec746204f3a3.tar.gz kube-fd31aa9b05ea215e8071cf76fe21ec746204f3a3.zip |
Added a maildir configuration controller that can edit the config in
sink.
The property binding only works when using actual QObject::property'ies.
It doesn't work at all with Q_PROPERTY, even with a NOTIFY signal.
Diffstat (limited to 'applications')
-rw-r--r-- | applications/kube-mail/package/contents/ui/Settings.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/applications/kube-mail/package/contents/ui/Settings.qml b/applications/kube-mail/package/contents/ui/Settings.qml index a3ea32f0..da44d331 100644 --- a/applications/kube-mail/package/contents/ui/Settings.qml +++ b/applications/kube-mail/package/contents/ui/Settings.qml | |||
@@ -55,19 +55,20 @@ Rectangle { | |||
55 | id: contextSettings | 55 | id: contextSettings |
56 | identifier: "applicationcontext" | 56 | identifier: "applicationcontext" |
57 | property string currentAccountId: "current" | 57 | property string currentAccountId: "current" |
58 | property var availableAccountTypes: ["maildir"] | ||
59 | property var accounts: ["current"] | ||
58 | } | 60 | } |
59 | 61 | ||
60 | Column { | 62 | Column { |
61 | spacing: 5 | 63 | spacing: 5 |
62 | Repeater { | 64 | Repeater { |
63 | model: ["current"] //Get from context settings | 65 | model: contextSettings.accounts |
64 | delegate: Maildir.AccountSettings { //This should be retrieved from the accounts plugin: KubeAccounts { identifier: modelData }.settingsUi | 66 | delegate: Maildir.AccountSettings { //This should be retrieved from the accounts plugin: KubeAccounts { identifier: modelData }.settingsUi |
65 | accountId: modelData | 67 | accountId: modelData |
66 | accountName: "Maildir" | ||
67 | } | 68 | } |
68 | } | 69 | } |
69 | } | 70 | } |
70 | 71 | ||
71 | //Add possibility to add more accounts | 72 | //TODO: Add possibility to add more accounts |
72 | } | 73 | } |
73 | } | 74 | } |