diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2020-05-29 14:18:34 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2020-07-10 10:02:20 +0200 |
commit | aab3f9e732829692672f9bb3e54a209d9b5d97b1 (patch) | |
tree | b3508061d93fe278cbe7dbc7a136af86f018f8b9 /src/qml/qml/qqmlmetatype.cpp | |
parent | 0cfb44bf2972dc006ec6042b676f86d6059d0890 (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/qqmlmetatype.cpp')
-rw-r--r-- | src/qml/qml/qqmlmetatype.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp index cf51279bda..59108bca98 100644 --- a/src/qml/qml/qqmlmetatype.cpp +++ b/src/qml/qml/qqmlmetatype.cpp @@ -141,6 +141,7 @@ static QQmlTypePrivate *createQQmlType(QQmlMetaTypeData *data, const QString &el d->typeId = type.typeId; d->listId = type.listId; d->extraData.cd->allocationSize = type.objectSize; + d->extraData.cd->userdata = type.userdata; d->extraData.cd->newFunc = type.create; d->extraData.cd->noCreationReason = type.noCreationReason; d->baseMetaObject = type.metaObject; |