aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-01-25 12:26:44 +0100
committerUlf Hermann <ulf.hermann@qt.io>2023-01-26 11:42:33 +0100
commit5f3b8bd08c45c4c1d03eab475648a94e02be82aa (patch)
treebf10870c53b7ce1283590068f009bdd0a2f36da4 /tests/auto/qml/qmlcppcodegen/data
parent5c496ad9527487a0d9d33ac0882fab439c993b02 (diff)
QML: Allow more conversions between different lists
You should be able to assign any list of QObjects to any other list of QObjects. Pick-to: 6.5 Fixes: QTBUG-108155 Change-Id: I6ddf0b49f7248ad56cc9560d217f3ea316c648a8 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/badSequence.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/badSequence.qml b/tests/auto/qml/qmlcppcodegen/data/badSequence.qml
index ff8981ec36..ff173b5002 100644
--- a/tests/auto/qml/qmlcppcodegen/data/badSequence.qml
+++ b/tests/auto/qml/qmlcppcodegen/data/badSequence.qml
@@ -1,6 +1,7 @@
import TestTypes
Person {
+ id: self
property Person other: Person { id: oo }
barzles: oo.barzles
cousins: oo.cousins
@@ -8,4 +9,16 @@ Person {
property int m: oo.cousins.length
property list<Person> others: cousins
+
+ property Person mom: Person {
+ id: mm
+ cousins: self.others
+ }
+ property list<Person> momsCousins: mm.cousins
+
+ property Person dad: Person {
+ id: dd
+ cousins: oo
+ }
+ property list<Person> dadsCousins: dd.cousins
}