aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlproperty/data/registeredCompositeTypeProperty.qml
blob: 92e1675d1157220140279dce05b4e4febfe51419 (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
26
27
28
29
30
31
32
import QtQuick 2.0
import "componentDir"

Item {
    id: root

    property FirstComponent first: FirstComponent { }
    property FirstComponent second
    property SecondComponent third: SecondComponent { }

    property list<FirstComponent> fclist: [
        FirstComponent {
            a: 15
        }
    ]
    property list<SecondComponent> sclistOne: [
        SecondComponent {
            a: "G'day, World"
        },
        SecondComponent { },
        SecondComponent {
            b: true
        }
    ]
    property list<SecondComponent> sclistTwo

    Component.onCompleted: {
        var c1 = Qt.createComponent("./componentDir/FirstComponent.qml");
        var o1 = c1.createObject(root);
        second = o1;
    }
}