diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-04-29 06:07:09 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-04-29 06:07:09 (GMT) |
commit | 11b7b2d5728df05060288909510c184180b0ff35 (patch) | |
tree | 7a74f2e1b566f4160d232b1e7ebd0433d79e6a8f /doc/src | |
parent | 1517c4fb9199d32c69378808a27f83d2edf065b2 (diff) | |
parent | a5e5b178615cea0dc795fd2008ef258030d2e8e6 (diff) | |
download | Qt-11b7b2d5728df05060288909510c184180b0ff35.zip Qt-11b7b2d5728df05060288909510c184180b0ff35.tar.gz Qt-11b7b2d5728df05060288909510c184180b0ff35.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/snippets/declarative/componentCreation.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/snippets/declarative/componentCreation.js b/doc/src/snippets/declarative/componentCreation.js index be3e4d6..814545e 100644 --- a/doc/src/snippets/declarative/componentCreation.js +++ b/doc/src/snippets/declarative/componentCreation.js @@ -3,7 +3,7 @@ var component; var sprite; function finishCreation() { - if (component.isReady) { + if (component.status == Component.Ready) { sprite = component.createObject(); if (sprite == null) { // Error Handling @@ -13,7 +13,7 @@ function finishCreation() { sprite.y = 100; // ... } - } else if (component.isError()) { + } else if (component.status == Component.Error) { // Error Handling console.log("Error loading component:", component.errorsString()); } @@ -26,7 +26,7 @@ function createSpriteObjects() { //![2] component = Qt.createComponent("Sprite.qml"); - if (component.isReady) + if (component.status == Component.Ready) finishCreation(); else component.statusChanged.connect(finishCreation); |