From f2a15482ddd289a36b04316a2b6ebed83eb017c5 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 11 Oct 2021 13:59:46 +0200 Subject: 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 --- src/qml/common/qv4compileddata_p.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/qml/common') 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; -- cgit v1.2.3