diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-05-25 10:27:18 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-05-25 10:27:18 (GMT) |
commit | 0dff624cc550254b804540b77b9ddd3c41a26f16 (patch) | |
tree | ed4b7815c0bdf13c1cffd9af6d13f79c4b28e5e2 /tests/auto/declarative/qdeclarativecomponent/data/createObject.qml | |
parent | b5702253a08e315b4db5620a1d4b0ffd4c8e0d0f (diff) | |
parent | 2447c023bc0113bace6f31d93ea942f7b8cb17da (diff) | |
download | Qt-0dff624cc550254b804540b77b9ddd3c41a26f16.zip Qt-0dff624cc550254b804540b77b9ddd3c41a26f16.tar.gz Qt-0dff624cc550254b804540b77b9ddd3c41a26f16.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'tests/auto/declarative/qdeclarativecomponent/data/createObject.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativecomponent/data/createObject.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativecomponent/data/createObject.qml b/tests/auto/declarative/qdeclarativecomponent/data/createObject.qml new file mode 100644 index 0000000..4ee1e75 --- /dev/null +++ b/tests/auto/declarative/qdeclarativecomponent/data/createObject.qml @@ -0,0 +1,16 @@ +import Qt 4.7 + +Item{ + id: root + property QtObject qobject : null + property QtObject declarativeitem : null + property QtObject graphicswidget: null + Component{id: a; QtObject{} } + Component{id: b; Item{} } + Component{id: c; QGraphicsWidget{} } + Component.onCompleted: { + root.qobject = a.createObject(root); + root.declarativeitem = b.createObject(root); + root.graphicswidget = c.createObject(root); + } +} |