fix compilation with Qt <= 5.4 (Debian jessie still has that)

This commit is contained in:
Michael Zanetti 2017-09-07 15:10:56 +02:00
parent ec5da8db07
commit c605bf15fe

View File

@ -31,6 +31,7 @@ namespace guhserver {
class UserManager : public QObject class UserManager : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(UserError)
public: public:
enum UserError { enum UserError {
UserErrorNoError, UserErrorNoError,
@ -41,7 +42,6 @@ public:
UserErrorTokenNotFound, UserErrorTokenNotFound,
UserErrorPermissionDenied UserErrorPermissionDenied
}; };
Q_ENUM(UserError)
explicit UserManager(QObject *parent = 0); explicit UserManager(QObject *parent = 0);