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/qqmltype_p_p.h | |
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/qqmltype_p_p.h')
-rw-r--r-- | src/qml/qml/qqmltype_p_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmltype_p_p.h b/src/qml/qml/qqmltype_p_p.h index 8cce5b7910..a66b889214 100644 --- a/src/qml/qml/qqmltype_p_p.h +++ b/src/qml/qml/qqmltype_p_p.h @@ -113,7 +113,8 @@ public: struct QQmlCppTypeData { int allocationSize; - void (*newFunc)(void *); + void (*newFunc)(void *, void *); + void *userdata = nullptr; QString noCreationReason; int parserStatusCast; QObject *(*extFunc)(QObject *); |