commit c8192ee9727ff1a41f6e5121de6d9801445d0138
Author: Christian Ehringfeld <c.ehringfeld@t-online.de>
Date:   Fri Mar 25 17:53:17 2016 +0100

    qt 5.3 comp

diff --git a/samples/validators/person.h b/samples/validators/person.h
index a5142f8..d374092 100644
--- a/samples/validators/person.h
+++ b/samples/validators/person.h
@@ -29,9 +29,15 @@ class Person: public Entity {
 
   public:
     enum class Gender {MALE, FEMALE, UNKNOWNGENDER};
-    Q_ENUM(Gender)
     enum class NameOrder {FIRST_FAMILY_NAME_ORDER, FAMILY_FIRST_NAME_ORDER};
+
+#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
+    Q_ENUM(Gender)
     Q_ENUM(NameOrder)
+#else
+    Q_ENUMS(Gender)
+    Q_ENUMS(NameOrder)
+#endif
     Q_INVOKABLE explicit Person(QObject *parent = 0);
     Person(QString firstName, QString familyName,
            Gender gender = Gender::UNKNOWNGENDER,
@@ -67,8 +73,8 @@ class Person: public Entity {
     QString getCustomPictureFileName() const;
     void setCustomPictureFileName(const QString &value);
 
-    QList<QSharedPointer<Address> > getAddresses() const;
-    void setAddresses(const QList<QSharedPointer<Address> > &value);
+    QList<QSharedPointer<Address>> getAddresses() const;
+    void setAddresses(const QList<QSharedPointer<Address>> &value);
 
     void addAddress(Address *address);
 
diff --git a/tests/models.h b/tests/models.h
index 17a07fa..90deeed 100644
--- a/tests/models.h
+++ b/tests/models.h
@@ -25,7 +25,11 @@ class Person: public Entity {
 
   public:
     enum class Gender {MALE, FEMALE, UNKNOWNGENDER};
+#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
     Q_ENUM(Gender)
+#else
+    Q_ENUMS(Gender)
+#endif
     enum class NameOrder {FIRST_FAMILY_NAME_ORDER, FAMILY_FIRST_NAME_ORDER};
     Q_INVOKABLE explicit Person(QObject *parent = 0);
     Person(QString firstName, QString familyName,
@@ -116,7 +120,7 @@ class WorkerGroup : public Entity {
                setWorkers)
   public:
     WorkerGroup() : Entity() { }
-    WorkerGroup(QString name, quint32 efficiency, bool active=true) : Entity() {
+    WorkerGroup(QString name, quint32 efficiency, bool active = true) : Entity() {
         this->name = name;
         this->efficiency = efficiency;
         this->active = active;
