From c633f7c5fce50db60035792526b6c7e84b51149f Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 17 Nov 2016 15:54:53 +0100 Subject: add accountwizard to mainview --- components/accounts/CreateMaildir.qml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'components/accounts/CreateMaildir.qml') diff --git a/components/accounts/CreateMaildir.qml b/components/accounts/CreateMaildir.qml index 63a63221..2b22d8b0 100644 --- a/components/accounts/CreateMaildir.qml +++ b/components/accounts/CreateMaildir.qml @@ -21,10 +21,19 @@ import QtQuick.Layouts 1.1 import QtQuick.Controls 1.4 as Controls import QtQuick.Controls 2.0 as Controls2 import org.kde.kirigami 1.0 as Kirigami -import QtQuick.Dialogs 1.0 +import QtQuick.Dialogs 1.0 as Dialogs + +import org.kube.framework.domain 1.0 as KubeFramework Item { + id: root + + //Controller + KubeFramework.AccountsController { + id: accountsController + } + //Navigation Controls.ToolButton { iconName: "go-previous" @@ -44,6 +53,7 @@ Item { } + //BEGIN heading Kirigami.Heading { id: heading text: "Add your Maildir archive" @@ -66,7 +76,7 @@ Item { color: Kirigami.Theme.disabledTextColor wrapMode: Text.Wrap } - + //END heading GridLayout { anchors { @@ -86,6 +96,7 @@ Item { Layout.alignment: Qt.AlignRight } Controls.TextField { + id: title Layout.fillWidth: true } @@ -112,7 +123,7 @@ Item { Component { id: fileDialogComponent - FileDialog { + Dialogs.FileDialog { id: fileDialog visible: true @@ -121,7 +132,7 @@ Item { selectFolder: true onAccepted: { - path.text = fileDialog.fileUrl + //root.path = fileDialog.fileUrl } } } @@ -132,6 +143,7 @@ Item { text: "" } Controls.CheckBox { + id: readOnly text: "Read only" } @@ -165,6 +177,8 @@ Item { text: "Save" onClicked: { + //accountsController.createMaildirAccount(root.name, root.path, root.readOnly) + popup.close() } } } -- cgit v1.2.3