Commit 3d9432a3 authored by Tobias Doerffel's avatar Tobias Doerffel Committed by Laurent Montel

[PATCH 08/13] ldapconfigwidget: use Q_ENUM instead of Q_ENUMS

Signed-off-by: Laurent Montel's avatarMontel Laurent <montel@kde.org>
parent f8dd7b3e
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment