summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-10-08 02:44:29 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-10-08 02:44:29 (GMT)
commite2ed7541bace9c2b0845b2f9b51611d41874a601 (patch)
treefecfb32d49695ee90aba8854c02a80d4eb995bf2 /tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml
parent75da89f26a89ac1224372277799051f9224dbbe7 (diff)
parent4cd7e2a0a956b1f9a0ea0d4691ebb1380ebc7c84 (diff)
downloadQt-e2ed7541bace9c2b0845b2f9b51611d41874a601.zip
Qt-e2ed7541bace9c2b0845b2f9b51611d41874a601.tar.gz
Qt-e2ed7541bace9c2b0845b2f9b51611d41874a601.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml')
-rw-r--r--tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml b/tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml
new file mode 100644
index 0000000..ef39590
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml
@@ -0,0 +1,16 @@
+import Qt.test 1.0
+
+MyQmlObject{
+ id: obj
+ objectName: "obj"
+ function createOne()
+ {
+ obj.objectProperty = createQmlObject('import Qt.test 1.0; MyQmlObject{objectName:"objectOne"}', obj);
+ }
+
+ function createTwo()
+ {
+ var component = createComponent('dynamicCreation.helper.qml');
+ obj.objectProperty = component.createObject();
+ }
+}