Commit e96571cf authored by Chupligin Sergey's avatar Chupligin Sergey

[Packaking] fix qt 5.6 build

parent 1971d150
...@@ -3,10 +3,11 @@ ...@@ -3,10 +3,11 @@
#include <QObject> #include <QObject>
#if QT_VERSION < QT_VERSION_CHECK(5,6,0)
#ifndef Q_ENUM #ifndef Q_ENUM
#define Q_ENUM(x) Q_ENUMS(x) #define Q_ENUM(x) Q_ENUMS(x)
#endif #endif
#endif
class Sizing : public QObject class Sizing : public QObject
{ {
Q_OBJECT Q_OBJECT
...@@ -21,8 +22,11 @@ public: ...@@ -21,8 +22,11 @@ public:
xxhdpi, xxhdpi,
xxxhdpi xxxhdpi
}; };
#if QT_VERSION < QT_VERSION_CHECK(5,6,0)
Q_ENUM(Densities) Q_ENUM(Densities)
#else
Q_ENUMS(Densities)
#endif
bool isValid(){return m_valid;} bool isValid(){return m_valid;}
float getMmScaleFactor(){return m_mm_factor;} float getMmScaleFactor(){return m_mm_factor;}
......
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