diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-13 23:56:32 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-13 23:56:32 +0100 |
commit | 5ec954917c9a59ce0ec8ba3a30b99bb9cd30e297 (patch) | |
tree | bb9b6dd209017d7f0bc662ff795ae22c110dd955 /accounts/maildir/package | |
parent | 8ed66dd788152e670808e95b38588841c5e8214d (diff) | |
download | kube-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.qml | 6 |
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 { |