From fd31aa9b05ea215e8071cf76fe21ec746204f3a3 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 3 Mar 2016 22:30:07 +0100 Subject: 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. --- applications/kube-mail/package/contents/ui/Settings.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'applications/kube-mail/package/contents/ui') 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 { id: contextSettings identifier: "applicationcontext" property string currentAccountId: "current" + property var availableAccountTypes: ["maildir"] + property var accounts: ["current"] } Column { spacing: 5 Repeater { - model: ["current"] //Get from context settings + model: contextSettings.accounts delegate: Maildir.AccountSettings { //This should be retrieved from the accounts plugin: KubeAccounts { identifier: modelData }.settingsUi accountId: modelData - accountName: "Maildir" } } } - //Add possibility to add more accounts + //TODO: Add possibility to add more accounts } } -- cgit v1.2.3