aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlvaluetypeproviders/data/recursiveWriteBack.qml
blob: e2c39d2d72ee6568f974b6cea567cda99c204400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQml
import Test

MyTypeObject {
    property list<structured> l: [{i : 21}, {c: 22}, {p: {x: 199, y: 222}}]
    property int aa: 5

    Component.onCompleted: {
        l[2].i = 4
        l[1].p.x = 88
        l[0].sizes[1].width = 19
        structured.p.x = 76

        var sizesDetached = l[0].sizesDetached();
        sizesDetached[1].width = 12;
        aa = sizesDetached[1].width;
    }
}