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