aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/badlyBoundComponents.qml
blob: 4f25f1d508cfdcf1ba42a4daee112bceb8ecbb1a (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 ComponentBehavior: Bound

import QtQml

QtObject {
    id: root
    property string foo: "bar"
    property Component c1: Component {
        QtObject {
            id: cc
            objectName: root.foo
            property int i: 12
        }
    }

    property Component c2: Component {
        QtObject {
            objectName: root.foo + cc.i
        }
    }

    property QtObject o1: c1.createObject()
    property QtObject o2: c2.createObject()

}