diff options
Diffstat (limited to 'tests/auto/declarative/qdeclarativeinfo/data/NestedComponent.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativeinfo/data/NestedComponent.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeinfo/data/NestedComponent.qml b/tests/auto/declarative/qdeclarativeinfo/data/NestedComponent.qml new file mode 100644 index 0000000000..d8ae8ae3ba --- /dev/null +++ b/tests/auto/declarative/qdeclarativeinfo/data/NestedComponent.qml @@ -0,0 +1,23 @@ +import QtQuick 1.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); + } +} |