aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Doerffel <[email protected]>2017-07-21 08:03:39 +0200
committerMontel Laurent <[email protected]>2017-07-23 07:00:34 +0200
commit3d9432a3053f600cf65451093c81fef2491f72fb (patch)
tree2289fd74eae71412ad764b0b9b46edf2f195f973
parentf8dd7b3ea67ef6ddf4b310e111932cd7684b3b18 (diff)
[PATCH 08/13] ldapconfigwidget: use Q_ENUM instead of Q_ENUMS
Signed-off-by: Montel Laurent <[email protected]>
-rw-r--r--src/ldapconfigwidget.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ldapconfigwidget.h b/src/ldapconfigwidget.h
index f98d38a..3322b1b 100644
--- a/src/ldapconfigwidget.h
+++ b/src/ldapconfigwidget.h
@@ -46,8 +46,6 @@ class KLDAP_EXPORT LdapConfigWidget : public QWidget
{
Q_OBJECT
Q_FLAGS(WinFlags)
- Q_ENUMS(Security)
- Q_ENUMS(Auth)
Q_PROPERTY(WinFlags features READ features WRITE setFeatures)
Q_PROPERTY(QString user READ user WRITE setUser)
Q_PROPERTY(QString bindDn READ bindDn WRITE setBindDn)
@@ -84,15 +82,17 @@ public:
W_PAGESIZE = 0x2000,
W_ALL = 0x2fff
};
+ Q_DECLARE_FLAGS(WinFlags, WinFlag)
- typedef enum {
+ enum Security {
None, SSL, TLS
- } Security;
- typedef enum {
- Anonymous, Simple, SASL
- } Auth;
+ };
+ Q_ENUM(Security)
- Q_DECLARE_FLAGS(WinFlags, WinFlag)
+ enum Auth {
+ Anonymous, Simple, SASL
+ };
+ Q_ENUM(Auth)
/** Constructs an empty configuration widget.
* You need to call setFlags() after this.