summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/samegame/samegame3/samegame.js
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-05-04 10:23:21 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-05-04 10:23:21 (GMT)
commit337dbd5391b4e2b1bd88918a46f3392df8fd1312 (patch)
tree0f065124c11ffbec256924e36baee2ba1fc0e069 /examples/declarative/tutorials/samegame/samegame3/samegame.js
parentffa103af9620998f47c632f4118e789bf7f1cde7 (diff)
parenta5aadcea4c12c7926bf3b4d218ce476723cd7e10 (diff)
downloadQt-337dbd5391b4e2b1bd88918a46f3392df8fd1312.zip
Qt-337dbd5391b4e2b1bd88918a46f3392df8fd1312.tar.gz
Qt-337dbd5391b4e2b1bd88918a46f3392df8fd1312.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (74 commits) Optimization for QDeclarativePaintedItem. Update childrenRect when children are added or removed. Optimize childrenRect. Remove obsolete doc groupings. Doc improvements Remove QDeclarativeLoader::resizeMode Don't create an anchors element so that we can check that there aren't any Ensure eval and Function are in the correct scope Add availableFonts.qml for fonts examples. Add Qt.fontFamilies() method Avoid regenerating PathView delegates needlessly When a model delegate is released, remove it from the scene immediately. Fix assignment of value types to javascript var. More doc fixes Make QDeclarativeParserStatus method pure virtual to encourage right code. Doc fixes Fix error string Add QML value types for math3d types Fix assert in qdeclarativepathview Avoid divisions by zero in qdeclarativetimeline ...
Diffstat (limited to 'examples/declarative/tutorials/samegame/samegame3/samegame.js')
-rw-r--r--examples/declarative/tutorials/samegame/samegame3/samegame.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/tutorials/samegame/samegame3/samegame.js b/examples/declarative/tutorials/samegame/samegame3/samegame.js
index da0f76e..4256aee 100644
--- a/examples/declarative/tutorials/samegame/samegame3/samegame.js
+++ b/examples/declarative/tutorials/samegame/samegame3/samegame.js
@@ -34,10 +34,10 @@ function createBlock(column, row) {
if (component == null)
component = Qt.createComponent("Block.qml");
- // Note that if Block.qml was not a local file, component.isReady would be
- // false and we should wait for the component's statusChanged() signal to
- // know when the file is downloaded and fully loaded before calling createObject().
- if (component.isReady) {
+ // Note that if Block.qml was not a local file, component.status would be
+ // Loading and we should wait for the component's statusChanged() signal to
+ // know when the file is downloaded and ready before calling createObject().
+ if (component.status == Component.Ready) {
var dynamicObject = component.createObject();
if (dynamicObject == null) {
console.log("error creating block");