From d6ded01b2e07981b8c1f6139b25935c8c26db0eb Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Tue, 22 Nov 2016 18:03:24 +0100 Subject: connect maildir controller and maildir account wizzard page --- components/accounts/CreateMaildir.qml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'components/accounts') 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 import org.kde.kirigami 1.0 as Kirigami import QtQuick.Dialogs 1.0 as Dialogs -import org.kube.framework.domain 1.0 as KubeFramework +import org.kube.accounts.maildir 1.0 as MaildirAccount Item { id: root //Controller - KubeFramework.AccountsController { + MaildirAccount.MaildirController { id: accountsController } @@ -98,6 +98,12 @@ Item { Controls.TextField { id: title Layout.fillWidth: true + + text: accountsController.name + + onTextChanged: { + accountsController.name = text + } } Kirigami.Label { @@ -112,6 +118,8 @@ Item { Layout.fillWidth: true enabled: false + + text: accountsController.path } Controls.Button { @@ -132,13 +140,14 @@ Item { selectFolder: true onAccepted: { - //root.path = fileDialog.fileUrl + accountsController.path = fileDialog.fileUrl } } } } } + /* Kirigami.Label { text: "" } @@ -146,6 +155,7 @@ Item { id: readOnly text: "Read only" } + */ Kirigami.Label { text: "" @@ -177,7 +187,7 @@ Item { text: "Save" onClicked: { - //accountsController.createMaildirAccount(root.name, root.path, root.readOnly) + accountsController.createAccount() popup.close() } } -- cgit v1.2.3