summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2011-02-28 02:31:50 (GMT)
committerBea Lam <bea.lam@nokia.com>2011-02-28 02:31:50 (GMT)
commit39013a4a8238d522ed1d13adb25e702da9e25fc9 (patch)
treec1e85dc48950b8f30bbd756f3b8c30be874c6dd1 /doc/src/snippets
parentb2a0db11c81a47c45d2617b64fef650a830b53f7 (diff)
downloadQt-39013a4a8238d522ed1d13adb25e702da9e25fc9.zip
Qt-39013a4a8238d522ed1d13adb25e702da9e25fc9.tar.gz
Qt-39013a4a8238d522ed1d13adb25e702da9e25fc9.tar.bz2
fix/improve docs for new QtQuick 1.1 attributes
Ensure attributes added in QtQuick 1.1 are marked with the '\since QtQuick 1.1' tag. Also add links to items listed in the QtQuick 1.1 section in whatsnew.qdoc. Task-number: QTBUG-17771 Change-Id: Ic8fb3c8d3c99a1469c1767779efaafd27ef460e1
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/declarative/componentCreation.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/src/snippets/declarative/componentCreation.js b/doc/src/snippets/declarative/componentCreation.js
index cf59777..7364139 100644
--- a/doc/src/snippets/declarative/componentCreation.js
+++ b/doc/src/snippets/declarative/componentCreation.js
@@ -32,13 +32,10 @@ function createSpriteObjects() {
//![finishCreation]
function finishCreation() {
if (component.status == Component.Ready) {
- sprite = component.createObject(appWindow);
+ sprite = component.createObject(appWindow, {"x": 100, "y": 100});
if (sprite == null) {
// Error Handling
- } else {
- sprite.x = 100;
- sprite.y = 100;
- // ...
+ console.log("Error creating object");
}
} else if (component.status == Component.Error) {
// Error Handling