diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-05-24 10:02:57 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-05-24 10:46:57 (GMT) |
commit | 1079096a57112d9615812771adba18d2e9297320 (patch) | |
tree | 9c1fbdf2475e831fc9cce597586f37836589f60b /doc/src/snippets/declarative | |
parent | 4c975ee19b9671fbf76b546fc8ca2eff5bc69303 (diff) | |
download | Qt-1079096a57112d9615812771adba18d2e9297320.zip Qt-1079096a57112d9615812771adba18d2e9297320.tar.gz Qt-1079096a57112d9615812771adba18d2e9297320.tar.bz2 |
Added autotest for Component.createObject() without Qt.createComponent()
Also augmented the docs for both functions a little.
Task-number: QTBUG-10926
Diffstat (limited to 'doc/src/snippets/declarative')
-rw-r--r-- | doc/src/snippets/declarative/Sprite.qml | 2 | ||||
-rw-r--r-- | doc/src/snippets/declarative/createComponent.qml | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/Sprite.qml b/doc/src/snippets/declarative/Sprite.qml index b306cb0..5f32b0a 100644 --- a/doc/src/snippets/declarative/Sprite.qml +++ b/doc/src/snippets/declarative/Sprite.qml @@ -39,6 +39,8 @@ ** ****************************************************************************/ +//![0] import Qt 4.7 Rectangle { width: 80; height: 50; color: "red" } +//![0] diff --git a/doc/src/snippets/declarative/createComponent.qml b/doc/src/snippets/declarative/createComponent.qml index 910ea95..3686188 100644 --- a/doc/src/snippets/declarative/createComponent.qml +++ b/doc/src/snippets/declarative/createComponent.qml @@ -39,6 +39,7 @@ ** ****************************************************************************/ +//![0] import Qt 4.7 import "componentCreation.js" as MyModule @@ -48,3 +49,4 @@ Rectangle { Component.onCompleted: MyModule.createSpriteObjects(); } +//![0] |