summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/tutorial.qdoc
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-04-01 15:19:55 +1000
committerYann Bodson <yann.bodson@nokia.com>2010-04-01 15:21:29 +1000
commit52d9927713df64f8dec11b69bf907a50a9dc32a2 (patch)
treee1899c829aacea736709e4c672cd9bfb5e1be45c /doc/src/declarative/tutorial.qdoc
parent47b33bcb65b642d808251bed7e38fc36a3e89bfc (diff)
Make QML 'hello world' tutorial less confusing.
Task-number: QTBUG-9384
Diffstat (limited to 'doc/src/declarative/tutorial.qdoc')
-rw-r--r--doc/src/declarative/tutorial.qdoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/declarative/tutorial.qdoc b/doc/src/declarative/tutorial.qdoc
index 66de741792..1a93d05b45 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}).
*/