Refactor: prefer Q_ENUM for declaring C++ enums to the Qt meta type system

master
Johan Ouwerkerk 2019-10-09 21:27:47 +02:00
parent 3734e908a9
commit ba4d370ee6
1 changed files with 1 additions and 1 deletions

View File

@ -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<qint64(void)>& clock, QObject *parent = 0);