diff options
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(); |