summaryrefslogtreecommitdiffstats
path: root/components/accounts/CreateMaildir.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/accounts/CreateMaildir.qml')
-rw-r--r--components/accounts/CreateMaildir.qml22
1 files changed, 18 insertions, 4 deletions
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
21import QtQuick.Controls 1.4 as Controls 21import QtQuick.Controls 1.4 as Controls
22import QtQuick.Controls 2.0 as Controls2 22import QtQuick.Controls 2.0 as Controls2
23import org.kde.kirigami 1.0 as Kirigami 23import org.kde.kirigami 1.0 as Kirigami
24import QtQuick.Dialogs 1.0 24import QtQuick.Dialogs 1.0 as Dialogs
25
26import org.kube.framework.domain 1.0 as KubeFramework
25 27
26Item { 28Item {
29 id: root
30
31 //Controller
32 KubeFramework.AccountsController {
33 id: accountsController
34 }
27 35
36 //Navigation
28 Controls.ToolButton { 37 Controls.ToolButton {
29 iconName: "go-previous" 38 iconName: "go-previous"
30 39
@@ -44,6 +53,7 @@ Item {
44 } 53 }
45 54
46 55
56 //BEGIN heading
47 Kirigami.Heading { 57 Kirigami.Heading {
48 id: heading 58 id: heading
49 text: "Add your Maildir archive" 59 text: "Add your Maildir archive"
@@ -66,7 +76,7 @@ Item {
66 color: Kirigami.Theme.disabledTextColor 76 color: Kirigami.Theme.disabledTextColor
67 wrapMode: Text.Wrap 77 wrapMode: Text.Wrap
68 } 78 }
69 79 //END heading
70 80
71 GridLayout { 81 GridLayout {
72 anchors { 82 anchors {
@@ -86,6 +96,7 @@ Item {
86 Layout.alignment: Qt.AlignRight 96 Layout.alignment: Qt.AlignRight
87 } 97 }
88 Controls.TextField { 98 Controls.TextField {
99 id: title
89 Layout.fillWidth: true 100 Layout.fillWidth: true
90 } 101 }
91 102
@@ -112,7 +123,7 @@ Item {
112 123
113 Component { 124 Component {
114 id: fileDialogComponent 125 id: fileDialogComponent
115 FileDialog { 126 Dialogs.FileDialog {
116 id: fileDialog 127 id: fileDialog
117 128
118 visible: true 129 visible: true
@@ -121,7 +132,7 @@ Item {
121 selectFolder: true 132 selectFolder: true
122 133
123 onAccepted: { 134 onAccepted: {
124 path.text = fileDialog.fileUrl 135 //root.path = fileDialog.fileUrl
125 } 136 }
126 } 137 }
127 } 138 }
@@ -132,6 +143,7 @@ Item {
132 text: "" 143 text: ""
133 } 144 }
134 Controls.CheckBox { 145 Controls.CheckBox {
146 id: readOnly
135 text: "Read only" 147 text: "Read only"
136 } 148 }
137 149
@@ -165,6 +177,8 @@ Item {
165 text: "Save" 177 text: "Save"
166 178
167 onClicked: { 179 onClicked: {
180 //accountsController.createMaildirAccount(root.name, root.path, root.readOnly)
181 popup.close()
168 } 182 }
169 } 183 }
170 } 184 }