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/maildirsettings.h | |
parent | 8ed66dd788152e670808e95b38588841c5e8214d (diff) | |
download | kube-5ec954917c9a59ce0ec8ba3a30b99bb9cd30e297.tar.gz kube-5ec954917c9a59ce0ec8ba3a30b99bb9cd30e297.zip |
Added a path validator
Diffstat (limited to 'accounts/maildir/maildirsettings.h')
-rw-r--r-- | accounts/maildir/maildirsettings.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/accounts/maildir/maildirsettings.h b/accounts/maildir/maildirsettings.h index 9a65cf39..063fb9da 100644 --- a/accounts/maildir/maildirsettings.h +++ b/accounts/maildir/maildirsettings.h | |||
@@ -19,6 +19,7 @@ | |||
19 | #pragma once | 19 | #pragma once |
20 | 20 | ||
21 | #include <QObject> | 21 | #include <QObject> |
22 | #include <QValidator> | ||
22 | 23 | ||
23 | class MaildirSettings : public QObject | 24 | class MaildirSettings : public QObject |
24 | { | 25 | { |
@@ -26,6 +27,7 @@ class MaildirSettings : public QObject | |||
26 | Q_PROPERTY(QByteArray identifier READ identifier WRITE setIdentifier) | 27 | Q_PROPERTY(QByteArray identifier READ identifier WRITE setIdentifier) |
27 | Q_PROPERTY(QByteArray accountIdentifier READ accountIdentifier WRITE setAccountIdentifier) | 28 | Q_PROPERTY(QByteArray accountIdentifier READ accountIdentifier WRITE setAccountIdentifier) |
28 | Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged) | 29 | Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged) |
30 | Q_PROPERTY(QValidator* pathValidator READ pathValidator) | ||
29 | 31 | ||
30 | public: | 32 | public: |
31 | MaildirSettings(QObject *parent = 0); | 33 | MaildirSettings(QObject *parent = 0); |
@@ -38,6 +40,7 @@ public: | |||
38 | 40 | ||
39 | void setPath(const QString &); | 41 | void setPath(const QString &); |
40 | QString path() const; | 42 | QString path() const; |
43 | QValidator *pathValidator() const; | ||
41 | 44 | ||
42 | Q_INVOKABLE void save(); | 45 | Q_INVOKABLE void save(); |
43 | Q_INVOKABLE void remove(); | 46 | Q_INVOKABLE void remove(); |