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:
Fabian Kosmale 2023-04-28 15:16:32 +02:00
parent e90b2040a2
commit a9644b46ca
2 changed files with 1 additions and 2 deletions

View File

@ -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();

View File

@ -35,7 +35,6 @@ public:
SO_CustomBase = 0xf00,
SO_ComplexCustomBase = 0xf000000
};
Q_ENUMS(OptionType)
enum StyleOptionType { Type = SO_Default };
enum StyleOptionVersion { Version = 1 };