diff options
Diffstat (limited to 'accounts/maildir/package')
-rw-r--r-- | accounts/maildir/package/contents/ui/MaildirAccountSettings.qml | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml index 5ba9f0c1..77cf739f 100644 --- a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml +++ b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml | |||
@@ -20,12 +20,12 @@ import QtQuick.Controls 1.4 | |||
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | 21 | ||
22 | import org.kde.kube.settings 1.0 as KubeSettings | 22 | import org.kde.kube.settings 1.0 as KubeSettings |
23 | // import org.kde.kube.accounts.maildir 1.0 as MaildirAccount | 23 | import org.kde.kube.accounts.maildir 1.0 as MaildirAccount |
24 | 24 | ||
25 | Rectangle { | 25 | Rectangle { |
26 | id: root | 26 | id: root |
27 | property string accountId | 27 | property string accountId |
28 | property string accountName | 28 | property string accountName: "Maildir" |
29 | 29 | ||
30 | color: colorPalette.background | 30 | color: colorPalette.background |
31 | 31 | ||
@@ -40,35 +40,45 @@ Rectangle { | |||
40 | text: "Account: " + accountName | 40 | text: "Account: " + accountName |
41 | } | 41 | } |
42 | 42 | ||
43 | Label { text: "Path" } | ||
44 | TextField { | ||
45 | id: path | ||
46 | placeholderText: "path" | ||
47 | Layout.fillWidth: true | ||
48 | } | ||
49 | |||
50 | Text { | ||
51 | Layout.columnSpan: 2 | ||
52 | Layout.fillWidth: true | ||
53 | text: "Smtp:" | ||
54 | } | ||
55 | |||
43 | Label { text: "Username" } | 56 | Label { text: "Username" } |
44 | TextField { | 57 | TextField { |
45 | id: username | 58 | id: username |
46 | text: "username" | 59 | placeholderText: "username" |
47 | Layout.fillWidth: true | 60 | Layout.fillWidth: true |
48 | } | 61 | } |
49 | 62 | ||
50 | Label { text: "Password" } | 63 | Label { text: "Password" } |
51 | TextField { | 64 | TextField { |
52 | id: password | 65 | id: password |
53 | text: "password" | 66 | placeholderText: "password" |
54 | Layout.fillWidth: true | 67 | Layout.fillWidth: true |
55 | } | 68 | } |
56 | 69 | ||
57 | Label { text: "Server" } | 70 | Label { text: "Server" } |
58 | TextField { | 71 | TextField { |
59 | id: server | 72 | id: server |
60 | text: "server" | 73 | placeholderText: "server" |
61 | Layout.fillWidth: true | 74 | Layout.fillWidth: true |
62 | } | 75 | } |
63 | 76 | ||
64 | //If we had a settings controller | 77 | MaildirAccount.MaildirSettings { |
65 | // MaildirAccount.SmtpSettings { | 78 | id: maildirSettings |
66 | // id: smtpSettings | 79 | identifier: "org.kde.maildir.instance1" |
67 | // identifier: accountId | 80 | property alias path: path.text |
68 | // property alias username: username.text | 81 | } |
69 | // property alias password: password.text | ||
70 | // property alias server: server.text | ||
71 | // } | ||
72 | 82 | ||
73 | KubeSettings.Settings { | 83 | KubeSettings.Settings { |
74 | id: accountSettings | 84 | id: accountSettings |
@@ -92,8 +102,8 @@ Rectangle { | |||
92 | id: button | 102 | id: button |
93 | text: "Save" | 103 | text: "Save" |
94 | onClicked: { | 104 | onClicked: { |
95 | smtpSettings.save(); | 105 | transportSettings.save(); |
96 | root.visible = false; | 106 | maildirSettings.save(); |
97 | } | 107 | } |
98 | } | 108 | } |
99 | } | 109 | } |