diff options
Diffstat (limited to 'tests/auto/qml/qmllint/data/badlyBoundComponents.qml')
-rw-r--r-- | tests/auto/qml/qmllint/data/badlyBoundComponents.qml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/badlyBoundComponents.qml b/tests/auto/qml/qmllint/data/badlyBoundComponents.qml new file mode 100644 index 0000000000..4f25f1d508 --- /dev/null +++ b/tests/auto/qml/qmllint/data/badlyBoundComponents.qml @@ -0,0 +1,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() + +} |