aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/listAssignment.qml
blob: 6e6039715b8914f91dd5d9fa63ad25bfd2143fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import QtQuick 2.0
import Qt.test 1.0

Item {
    id: root
    width: 640
    height: 480

    property int list1length: list1.length

    property list<MyQmlObject> list1
    property list<MyQmlObject> list2: [
        MyQmlObject { id: one; value: 100 },
        MyQmlObject { id: two; value: 300 }
    ]

    Component.onCompleted: {
        root.list1 = root.list2;
    }
}