diff options
author | Ulf Hermann <[email protected]> | 2023-01-03 15:45:31 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2023-01-20 20:39:11 +0100 |
commit | ec58c0ddb7fe1ebf33c80335ab9435e53fd00274 (patch) | |
tree | d30a8779fa5fb82bcc9e3b31e581d3962dc81d21 /src/qml/jsruntime/qv4executablecompilationunit_p.h | |
parent | ea5200b82f21e0f4d080d3fc256b218e0ee56f3d (diff) |
QML: Add a pragma for value type behavior
Unfortunately value types behave differently when compiled to C++.
Document the difference and introduce a pragma to make them behave one
way or the other.
Pick-to: 6.5
Fixes: QTBUG-109221
Change-Id: Ib2685153c0b4ae209bafbea7a01229377fdb47dd
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4executablecompilationunit_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4executablecompilationunit_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4executablecompilationunit_p.h b/src/qml/jsruntime/qv4executablecompilationunit_p.h index 0b27e68a20..e6472f3f83 100644 --- a/src/qml/jsruntime/qv4executablecompilationunit_p.h +++ b/src/qml/jsruntime/qv4executablecompilationunit_p.h @@ -176,6 +176,11 @@ public: return data->flags & CompiledData::Unit::NativeMethodsAcceptThisObject; } + bool valueTypesAreCopied() const + { + return data->flags & CompiledData::Unit::ValueTypesCopied; + } + int objectCount() const { return qmlData->nObjects; } const CompiledObject *objectAt(int index) const { |