summaryrefslogtreecommitdiffstats
path: root/accounts/maildir/package
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-13 23:56:32 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-13 23:56:32 +0100
commit5ec954917c9a59ce0ec8ba3a30b99bb9cd30e297 (patch)
treebb9b6dd209017d7f0bc662ff795ae22c110dd955 /accounts/maildir/package
parent8ed66dd788152e670808e95b38588841c5e8214d (diff)
downloadkube-5ec954917c9a59ce0ec8ba3a30b99bb9cd30e297.tar.gz
kube-5ec954917c9a59ce0ec8ba3a30b99bb9cd30e297.zip
Added a path validator
Diffstat (limited to 'accounts/maildir/package')
-rw-r--r--accounts/maildir/package/contents/ui/MaildirAccountSettings.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml
index 2f5049e0..61828f34 100644
--- a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml
+++ b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml
@@ -51,6 +51,12 @@ Rectangle {
51 Layout.fillWidth: true 51 Layout.fillWidth: true
52 text: maildirSettings.path 52 text: maildirSettings.path
53 onTextChanged: { maildirSettings.path = text; } 53 onTextChanged: { maildirSettings.path = text; }
54 validator: maildirSettings.pathValidator
55 Rectangle {
56 anchors.fill: parent
57 opacity: 0.2
58 color: path.acceptableInput ? "green" : "yellow"
59 }
54 } 60 }
55 61
56 Button { 62 Button {