diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-04-29 05:39:47 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-04-29 05:42:49 (GMT) |
commit | 96551e8af08c6f5eb506468a1a79070f23525bca (patch) | |
tree | 0de2ac37a5658ae57fe49d9a4b39b2280af26974 /demos | |
parent | 9fb7035d59ffa582edabf53c5d617524ab92ae52 (diff) | |
download | Qt-96551e8af08c6f5eb506468a1a79070f23525bca.zip Qt-96551e8af08c6f5eb506468a1a79070f23525bca.tar.gz Qt-96551e8af08c6f5eb506468a1a79070f23525bca.tar.bz2 |
Remove Component's isReady, isLoading, isError and isNull properties.
The Component status enum covers all of these properties already and
removing these also makes the API consistent with Image and Loader.
Note this change only affects the QML Component API; the methods are
still available for QDeclarativeComponent.
Diffstat (limited to 'demos')
-rwxr-xr-x | demos/declarative/samegame/SamegameCore/samegame.js | 2 | ||||
-rw-r--r-- | demos/declarative/snake/content/snake.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/demos/declarative/samegame/SamegameCore/samegame.js b/demos/declarative/samegame/SamegameCore/samegame.js index bf99ca3..cc0a70d 100755 --- a/demos/declarative/samegame/SamegameCore/samegame.js +++ b/demos/declarative/samegame/SamegameCore/samegame.js @@ -175,7 +175,7 @@ function createBlock(column,row){ // only work if the block QML is a local file. Otherwise the component will // not be ready immediately. There is a statusChanged signal on the // component you could use if you want to wait to load remote files. - if(component.isReady){ + if(component.status == Component.Ready){ var dynamicObject = component.createObject(); if(dynamicObject == null){ console.log("error creating block"); 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"); |