aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine.cpp
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2020-05-29 14:18:34 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2020-07-10 10:02:20 +0200
commitaab3f9e732829692672f9bb3e54a209d9b5d97b1 (patch)
treeb3508061d93fe278cbe7dbc7a136af86f018f8b9 /src/qml/qml/qqmlengine.cpp
parent0cfb44bf2972dc006ec6042b676f86d6059d0890 (diff)
Add userdata callback to qml registration
This is needed in order to remove PySide2's qml type limit. Change-Id: I331d9e31574a744eb9085222d58ea8a8789e0e31 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
-rw-r--r--src/qml/qml/qqmlengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp
index f42d4472b2..cc11535ba8 100644
--- a/src/qml/qml/qqmlengine.cpp
+++ b/src/qml/qml/qqmlengine.cpp
@@ -108,11 +108,11 @@ int qmlRegisterUncreatableMetaObject(const QMetaObject &staticMetaObject,
{
QQmlPrivate::RegisterType type = {
0,
-
QMetaType(),
QMetaType(),
0,
nullptr,
+ nullptr,
reason,
uri, QTypeRevision::fromVersion(versionMajor, versionMinor), qmlName, &staticMetaObject,