diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2021-05-07 14:48:12 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2021-05-11 16:20:55 +0200 |
commit | 263c3c555741b28498e274bb0b167ffd3eec8f19 (patch) | |
tree | ef41eced793810bd03568ad5a03dbd0b3a1a7ab7 /src/quick/items/qquickrectangle_p.h | |
parent | d5d6b9eaa439302ba04419cccc501a719a337480 (diff) |
qquickgradient: Use Q_EXTENDED_NAMESPACE instead of Q_ENUMS
This will not change the amount of enums included (Q_ENUMS automatically pulls in all the other enums too, surprisingly).
But it will enable us to see the enum values in qmltypes and thus it will work with our tooling now.
Change-Id: Ie2ff418e96a75442781b1dc04dd0391ab4587340
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quick/items/qquickrectangle_p.h')
-rw-r--r-- | src/quick/items/qquickrectangle_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickrectangle_p.h b/src/quick/items/qquickrectangle_p.h index c4f03de770..8c0d111241 100644 --- a/src/quick/items/qquickrectangle_p.h +++ b/src/quick/items/qquickrectangle_p.h @@ -127,8 +127,8 @@ class Q_QUICK_PRIVATE_EXPORT QQuickGradient : public QObject Q_CLASSINFO("DefaultProperty", "stops") QML_NAMED_ELEMENT(Gradient) QML_ADDED_IN_VERSION(2, 0) + QML_EXTENDED_NAMESPACE(QGradient) - Q_ENUMS(QGradient::Preset) public: QQuickGradient(QObject *parent=nullptr); ~QQuickGradient() override; |