aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/unboundComponents.qml
blob: f4ce8c6f5dd172929bb4db936c0e025d0f060b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pragma ComponentBehavior: Unbound
import QtQml

QtObject {
    id: root
    property string foo: "bar"
    property Component c1: Component {
        QtObject {
            id: c1
            objectName: root.foo
            property int i: 12
            property Component c2: Component {
                QtObject {
                    objectName: root.foo + c1.i
                }
            }
            property QtObject o: c2.createObject()
        }
    }

    property QtObject o: c1.createObject()
}