diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-05-19 12:21:08 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-05-19 14:41:08 +0200 |
commit | 0f1d36b9de9402526655599812abedc06c2b10f9 (patch) | |
tree | 7a8d25809daf5391ea99bf4e3ce3ab35952a9ac9 /src/qml/qml/qqml.h | |
parent | aab39f5d5dc7d960715d5335a2427e89a6ce0f0d (diff) |
QML_DECLARE_TYPE: Do register type with normalized name
The normalized name of a pointer does not contain a space.
QML_DECLARE_TYPE should be superfluous in general for any type
registered to QML, but as it already exist, we should at least ensure
that it won't cause additional work.
Note that this will not gain us much until QTBUG-93841 is fixed in
qtbase.
Task-number: QTBUG-93841
Change-Id: Ibf02968e8ee3205afc4dd7531e33aaad070874a5
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqml.h')
-rw-r--r-- | src/qml/qml/qqml.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqml.h b/src/qml/qml/qqml.h index d485b5367d..d82567d26e 100644 --- a/src/qml/qml/qqml.h +++ b/src/qml/qml/qqml.h @@ -53,7 +53,7 @@ #define QML_VERSION_STR "2.0" #define QML_DECLARE_TYPE(TYPE) \ - Q_DECLARE_METATYPE(TYPE *) \ + Q_DECLARE_METATYPE(TYPE*) \ Q_DECLARE_METATYPE(QQmlListProperty<TYPE>) #define QML_DECLARE_TYPE_HASMETATYPE(TYPE) \ |