aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/unboundComponents.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/data/unboundComponents.qml')
-rw-r--r--tests/auto/qml/qmllint/data/unboundComponents.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/unboundComponents.qml b/tests/auto/qml/qmllint/data/unboundComponents.qml
new file mode 100644
index 0000000000..f4ce8c6f5d
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/unboundComponents.qml
@@ -0,0 +1,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()
+}