aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlinfo/data/NestedComponent.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlinfo/data/NestedComponent.qml')
-rw-r--r--tests/auto/qml/qqmlinfo/data/NestedComponent.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlinfo/data/NestedComponent.qml b/tests/auto/qml/qqmlinfo/data/NestedComponent.qml
new file mode 100644
index 0000000000..cfe47589df
--- /dev/null
+++ b/tests/auto/qml/qqmlinfo/data/NestedComponent.qml
@@ -0,0 +1,23 @@
+import QtQuick 2.0
+
+QtObject {
+ property variant nested
+ property variant nested2: nested.nested
+
+ property variant component
+ component: Component {
+ id: myComponent
+ NestedObject { property string testProp: "test" }
+ }
+
+ property variant component2
+ component2: Component {
+ id: myComponent2
+ Image { property string testProp: "test" }
+ }
+
+ Component.onCompleted: {
+ nested = myComponent.createObject(0);
+ nested2 = myComponent2.createObject(0);
+ }
+}