summaryrefslogtreecommitdiffstats
path: root/demos/declarative/snake
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 /demos/declarative/snake
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 'demos/declarative/snake')
-rw-r--r--demos/declarative/snake/content/snake.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/declarative/snake/content/snake.js b/demos/declarative/snake/content/snake.js
index 02f9757..102bd87 100644
--- a/demos/declarative/snake/content/snake.js
+++ b/demos/declarative/snake/content/snake.js
@@ -52,8 +52,8 @@ function startNewGame()
link.spawned = false;
link.dying = false;
} else {
- if(linkComponent.isReady == false){
- if(linkComponent.isError == true)
+ if(linkComponent.status != Component.Ready) {
+ if(linkComponent.status == Component.Error)
console.log(linkComponent.errorsString());
else
console.log("Still loading linkComponent");
@@ -293,8 +293,8 @@ function createCookie(value) {
}
}
- if(cookieComponent.isReady == false){
- if(cookieComponent.isError == true)
+ if(cookieComponent.status != Component.Ready) {
+ if(cookieComponent.status == Component.Error)
console.log(cookieComponent.errorsString());
else
console.log("Still loading cookieComponent");