aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/detachOnAssignment.qml
blob: c13d1c90aea4982b7092f55882aa34b823e6a66b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pragma Strict
import QtQml
import TestTypes

QtObject {
    property var d
    property var r
    property var v

    property Person person: Person { id: person }

    Component.onCompleted: {
        BirthdayParty.rsvp = new Date(1997, 2, 3, 4, 5);
        d = BirthdayParty.rsvp
        BirthdayParty.rsvp = new Date(2001, 5);

        person.area = { x: 2, y: 3, width: 4, height: 5};
        r = person.area;
        person.area.x = 22;

        person.things = ["a", 3, new Date(), this, null];
        v = person.things;
        person.things[0] = "c";
    }
}