diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-04-01 05:19:55 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-04-01 05:21:29 (GMT) |
commit | 52d9927713df64f8dec11b69bf907a50a9dc32a2 (patch) | |
tree | e1899c829aacea736709e4c672cd9bfb5e1be45c /doc | |
parent | 47b33bcb65b642d808251bed7e38fc36a3e89bfc (diff) | |
download | Qt-52d9927713df64f8dec11b69bf907a50a9dc32a2.zip Qt-52d9927713df64f8dec11b69bf907a50a9dc32a2.tar.gz Qt-52d9927713df64f8dec11b69bf907a50a9dc32a2.tar.bz2 |
Make QML 'hello world' tutorial less confusing.
Task-number: QTBUG-9384
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/tutorial.qdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/declarative/tutorial.qdoc b/doc/src/declarative/tutorial.qdoc index 66de741..1a93d05 100644 --- a/doc/src/declarative/tutorial.qdoc +++ b/doc/src/declarative/tutorial.qdoc @@ -155,13 +155,13 @@ An \l Item is the most basic visual element in QML and is often used as a contai \snippet examples/declarative/tutorials/helloworld/Cell.qml 4 -We declare a \c color property. This property is accessible from \e outside our component, this allows us +We declare a \c cellColor property. This property is accessible from \e outside our component, this allows us to instantiate the cells with different colors. This property is just an alias to an existing property - the color of the rectangle that compose the cell (see \l{intro-properties}{Properties}). \snippet examples/declarative/tutorials/helloworld/Cell.qml 5 -We want our component to also have a signal that we call \e clicked with a \e color parameter. +We want our component to also have a signal that we call \e clicked with a \e cellColor parameter of type \e color. We will use this signal to change the color of the text in the main QML file later. \snippet examples/declarative/tutorials/helloworld/Cell.qml 2 @@ -189,7 +189,7 @@ We create the color picker by putting 6 cells with different colors in a grid. \snippet examples/declarative/tutorials/helloworld/tutorial2.qml 1 -When the \e clicked signal of our cell is triggered, we want to set the color of the text to the color passed as a parameter. +When the \e clicked signal of our cell is triggered, we want to set the color of the text to the \e cellColor passed as a parameter. We can react to any signal of our component through a property of the name \e 'onSignalName' (see \l{Signal Handlers}). */ |