aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-08-23 17:00:25 +0200
committerUlf Hermann <ulf.hermann@qt.io>2023-08-25 20:36:33 +0200
commitede3389a3e152d7436bda6a53dd93e8847ab026e (patch)
treef04e3d7dd9d9225b9fb9ca30a1421d5e5d8ff3d5 /tests/auto/qml/qmlcppcodegen/data
parent3c506d0c65d355f9bd1d9b27da0315693c58c5ad (diff)
QmlCompiler: Allow setting values in sequences
Since we have write-back available now, this is not difficult anymore. This does not yet cover setting properties of value type objects stored in sequences such as "a[i].b = c". You can only set the whole element. Task-number: QTBUG-116011 Change-Id: Id5f7a19125897602880e573d5f25b025f9b91f34 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/writeback.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/writeback.qml b/tests/auto/qml/qmlcppcodegen/data/writeback.qml
index 17ddf7fd3e..8c6cb845c7 100644
--- a/tests/auto/qml/qmlcppcodegen/data/writeback.qml
+++ b/tests/auto/qml/qmlcppcodegen/data/writeback.qml
@@ -11,6 +11,8 @@ Person {
height: 199
}
+ property list<int> ints: [4, 3, 2, 1]
+
property outer recursive
property Person shadowable: Person {
area.width: self.area.width
@@ -28,6 +30,10 @@ Person {
shadowable.area2.y = 50
self.recursive.inner.i = 99;
+
+ self.ints[0] = 12;
+ ints[1] = 22;
+ ints[6] = 33;
}
property int inner: recursive.inner.i