From bf039428e22a10887e8d85a95ff5f38dc17e7ec2 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 14 Mar 2016 20:41:35 +0100 Subject: Multi-Account support in the folderview --- .../package/contents/ui/MaildirAccountSettings.qml | 28 ++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'accounts') diff --git a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml index 61828f34..3b2dbd35 100644 --- a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml +++ b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml @@ -28,7 +28,8 @@ import org.kube.accounts.maildir 1.0 as MaildirAccount Rectangle { id: root property string accountId - property string accountName: "Maildir" + property string accountName + property string icon color: ColorPalette.background @@ -40,7 +41,22 @@ Rectangle { Text { Layout.columnSpan: 2 Layout.fillWidth: true - text: "Account: " + accountName + text: "General:" + } + + Label { text: "Account Name" } + TextField { + id: name + placeholderText: accountName + Layout.fillWidth: true + text: accountSettings.name + onTextChanged: { accountSettings.name = text; } + } + + Text { + Layout.columnSpan: 2 + Layout.fillWidth: true + text: "Maildir:" } Label { text: "Path" } @@ -133,11 +149,19 @@ Rectangle { property string password; } + KubeSettings.Settings { + id: accountSettings + identifier: "account." + accountId + property string name; + property string icon: root.icon; + } + Button { text: "Save" onClicked: { transportSettings.save(); maildirSettings.save(); + accountSettings.save(); } } Button { -- cgit v1.2.3