diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-07-09 10:20:17 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-07-09 10:20:17 (GMT) |
commit | 186a7108515a82e98bdb511e3c20e0d6c349fec7 (patch) | |
tree | 533f62497b66cd231b3f5fed66e168aa496edf98 /doc | |
parent | e649d255bc3785c9af7c36e743ac204c8890137e (diff) | |
parent | 3b0a4bcf854e1d63b947e3f1690748850d416a6f (diff) | |
download | Qt-186a7108515a82e98bdb511e3c20e0d6c349fec7.zip Qt-186a7108515a82e98bdb511e3c20e0d6c349fec7.tar.gz Qt-186a7108515a82e98bdb511e3c20e0d6c349fec7.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/advtutorial.qdoc | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/doc/src/declarative/advtutorial.qdoc b/doc/src/declarative/advtutorial.qdoc index 9c72e95..740f6f9 100644 --- a/doc/src/declarative/advtutorial.qdoc +++ b/doc/src/declarative/advtutorial.qdoc @@ -164,14 +164,22 @@ The \c createBlock() function creates a block from the \c Block.qml file and moves the new block to its position on the game canvas. This involves several steps: \list -\o \l {Qt::createComponent()}{Qt.createComponent()} is called to generate an element from \c Block.qml. - If the component is ready, we can call \c createObject() to create an instance of the \c Block item. -\o If \c createObject() returned null (i.e. if there was an error while - loading the object), print the error information. -\o Place the block in its position on the board and set its width and height. - Also, store it in the blocks array for future reference. -\o Finally, print error information to the console if the component could not be - loaded for some reason (for example, if the file is missing). + +\o \l {QML:Qt::createComponent()}{Qt.createComponent()} is called to + generate an element from \c Block.qml. If the component is ready, + we can call \c createObject() to create an instance of the \c Block + item. + +\o If \c createObject() returned null (i.e. if there was an error + while loading the object), print the error information. + +\o Place the block in its position on the board and set its width and + height. Also, store it in the blocks array for future reference. + +\o Finally, print error information to the console if the component + could not be loaded for some reason (for example, if the file is + missing). + \endlist |