From ba4d370ee6b186a60b16722cfa9fe3b7037cfc1b Mon Sep 17 00:00:00 2001 From: Johan Ouwerkerk Date: Wed, 9 Oct 2019 21:27:47 +0200 Subject: [PATCH] Refactor: prefer Q_ENUM for declaring C++ enums to the Qt meta type system --- src/account.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/account.h b/src/account.h index 1c21b00..858439f 100644 --- a/src/account.h +++ b/src/account.h @@ -28,7 +28,6 @@ class Account : public QObject { Q_OBJECT - Q_ENUMS(Type) Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged) Q_PROPERTY(Type type READ type WRITE setType NOTIFY typeChanged) @@ -42,6 +41,7 @@ public: TypeHOTP, TypeTOTP }; + Q_ENUM(Type) explicit Account(const QUuid &id, QObject *parent = 0); explicit Account(const QUuid &id, const std::function& clock, QObject *parent = 0);