diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2023-06-14 08:32:13 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-06-15 13:57:32 +0200 |
commit | 0bb0eeeb09580de8bccef996f9b4099fb7d1b482 (patch) | |
tree | baf63aed7304629f009b3928c63126cae041648d /src/qml/qml/qqmlglobal_p.h | |
parent | 2cda28f3692fb1635b97a033b42ab9434437bef4 (diff) |
QML: Allow creating constructible value types from variant objects
VariantObject as source for value type constructions should work the
same way as other types.
Pick-to: 6.5 6.6
Change-Id: I35770adf0486b404673ee00800fb1d3e429a23cf
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlglobal_p.h')
-rw-r--r-- | src/qml/qml/qqmlglobal_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlglobal_p.h b/src/qml/qml/qqmlglobal_p.h index bd2cfc9a06..95403d041a 100644 --- a/src/qml/qml/qqmlglobal_p.h +++ b/src/qml/qml/qqmlglobal_p.h @@ -205,6 +205,7 @@ class QQmlValueTypeProvider { public: static bool createValueType(QMetaType targetMetaType, void *target, const QV4::Value &source); + static bool createValueType(QMetaType targetMetaType, void *target, const QVariant &source); static QVariant constructValueType( QMetaType targetMetaType, const QMetaObject *targetMetaObject, int ctorIndex, void *ctorArg); |