aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlproperty.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-03-31 14:42:43 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2021-03-31 22:49:47 +0200
commit45b64cd7199c6bc4d57d5fec1a22107cf1edc84c (patch)
tree7c062c6767f72d9fd735bf67a99d5a167fee1309 /src/qml/qml/qqmlproperty.h
parentbdf5c379657c651a97247ccdeb8b6f92c83eeef4 (diff)
Un-special case QQmlPropertyValueType
Change-Id: I5123f72fea4198505c27678dbaaea26313b2327c Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlproperty.h')
-rw-r--r--src/qml/qml/qqmlproperty.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlproperty.h b/src/qml/qml/qqmlproperty.h
index aa455101dc..696c0f7136 100644
--- a/src/qml/qml/qqmlproperty.h
+++ b/src/qml/qml/qqmlproperty.h
@@ -42,6 +42,7 @@
#include <QtQml/qtqmlglobal.h>
#include <QtCore/qmetaobject.h>
+#include <QtQml/qqmlregistration.h>
QT_BEGIN_NAMESPACE
@@ -54,6 +55,12 @@ class QQmlEngine;
class QQmlPropertyPrivate;
class Q_QML_EXPORT QQmlProperty
{
+ Q_GADGET
+ QML_ANONYMOUS
+ QML_ADDED_IN_VERSION(2, 15)
+
+ Q_PROPERTY(QObject *object READ object CONSTANT FINAL)
+ Q_PROPERTY(QString name READ name CONSTANT FINAL)
public:
enum PropertyTypeCategory {
InvalidCategory,