Remove obsolete Q_ENUMS usage
In qgfxsourceproxy_p.h, we can use the modern Q_ENUM. In QQuickStyleOption, he usage of Q_ENUMS did not make sense to begin with, as the class is neither a QObject nor a Q_GADGET (nor a Q_NAMESPACE). Change-Id: I5b85a46f57033442504a27bf2e1a05d7b0aaac48 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
e90b2040a2
commit
a9644b46ca
|
@ -31,7 +31,6 @@ class QGfxSourceProxy : public QQuickItem
|
|||
Q_PROPERTY(QRectF sourceRect READ sourceRect WRITE setSourceRect NOTIFY sourceRectChanged)
|
||||
Q_PROPERTY(bool active READ isActive NOTIFY activeChanged)
|
||||
Q_PROPERTY(Interpolation interpolation READ interpolation WRITE setInterpolation NOTIFY interpolationChanged)
|
||||
Q_ENUMS(Interpolation)
|
||||
|
||||
public:
|
||||
enum class Interpolation {
|
||||
|
@ -39,6 +38,7 @@ public:
|
|||
Nearest,
|
||||
Linear
|
||||
};
|
||||
Q_ENUM(Interpolation)
|
||||
|
||||
QGfxSourceProxy(QQuickItem *parentItem = nullptr);
|
||||
~QGfxSourceProxy();
|
||||
|
|
|
@ -35,7 +35,6 @@ public:
|
|||
SO_CustomBase = 0xf00,
|
||||
SO_ComplexCustomBase = 0xf000000
|
||||
};
|
||||
Q_ENUMS(OptionType)
|
||||
|
||||
enum StyleOptionType { Type = SO_Default };
|
||||
enum StyleOptionVersion { Version = 1 };
|
||||
|
|
Loading…
Reference in New Issue