diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-04-23 02:15:13 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-04-23 04:54:14 (GMT) |
commit | 5ef92c54cd35e6b2abf5f4b0db02c8980c48119d (patch) | |
tree | 043fadbec301b78a718016c38e8e6f80fd53fe7e /doc/src/declarative/globalobject.qdoc | |
parent | 9a11e0288869cdf53350a95bedf28374c8fccb31 (diff) | |
download | Qt-5ef92c54cd35e6b2abf5f4b0db02c8980c48119d.zip Qt-5ef92c54cd35e6b2abf5f4b0db02c8980c48119d.tar.gz Qt-5ef92c54cd35e6b2abf5f4b0db02c8980c48119d.tar.bz2 |
Return null if creation fails.
Diffstat (limited to 'doc/src/declarative/globalobject.qdoc')
-rw-r--r-- | doc/src/declarative/globalobject.qdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/declarative/globalobject.qdoc b/doc/src/declarative/globalobject.qdoc index 6709ab4..57eaae7 100644 --- a/doc/src/declarative/globalobject.qdoc +++ b/doc/src/declarative/globalobject.qdoc @@ -223,7 +223,7 @@ of their use. function finishCreation(){ if(component.isReady()){ sprite = component.createObject(); - if(sprite == 0){ + if(sprite == null){ // Error Handling }else{ sprite.parent = page; @@ -248,7 +248,7 @@ of their use. \code component = createComponent("Sprite.qml"); sprite = component.createObject(); - if(sprite == 0){ + if(sprite == null){ // Error Handling console.log(component.errorsString()); }else{ |