aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/common
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-10-11 13:59:46 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-10-13 14:03:41 +0200
commitf2a15482ddd289a36b04316a2b6ebed83eb017c5 (patch)
treeb2588d056ae5a80ac4b726571f6e1e3b0e362f8c /src/qml/common
parent4e645c7c33b03adf2d9161b00d00267add0aa373 (diff)
Add a Pragma for list assign behavior
[ChangeLog][QtQml] You can now specify the list property assignment behavior in QML using the "ListPropertyAssignBehavior" pragma. This is analogous to the macros you can use in C++. Fixes: QTBUG-93642 Change-Id: I9bdcf198031f1e24891f947b0990a3253d29a998 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/common')
-rw-r--r--src/qml/common/qv4compileddata_p.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qml/common/qv4compileddata_p.h b/src/qml/common/qv4compileddata_p.h
index 9530d391d6..b819681247 100644
--- a/src/qml/common/qv4compileddata_p.h
+++ b/src/qml/common/qv4compileddata_p.h
@@ -968,7 +968,11 @@ struct Unit
IsSharedLibrary = 0x8, // .pragma shared?
IsESModule = 0x10,
PendingTypeCompilation = 0x20, // the QML data structures present are incomplete and require type compilation
- IsStrict = 0x40
+ IsStrict = 0x40,
+ ListPropertyAssignReplaceIfDefault = 0x80,
+ ListPropertyAssignReplaceIfNotDefault = 0x100,
+ ListPropertyAssignReplace
+ = ListPropertyAssignReplaceIfDefault | ListPropertyAssignReplaceIfNotDefault,
};
quint32_le flags;
quint32_le stringTableSize;