summaryrefslogtreecommitdiff
path: root/examples/declarative/tutorials/helloworld/Cell.qml
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 /examples/declarative/tutorials/helloworld/Cell.qml
parent47b33bcb65b642d808251bed7e38fc36a3e89bfc (diff)
downloadqt4-tools-52d9927713df64f8dec11b69bf907a50a9dc32a2.tar.gz
Make QML 'hello world' tutorial less confusing.
Task-number: QTBUG-9384
Diffstat (limited to 'examples/declarative/tutorials/helloworld/Cell.qml')
-rw-r--r--examples/declarative/tutorials/helloworld/Cell.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/tutorials/helloworld/Cell.qml b/examples/declarative/tutorials/helloworld/Cell.qml
index de4f3bb5af..9249ffeb09 100644
--- a/examples/declarative/tutorials/helloworld/Cell.qml
+++ b/examples/declarative/tutorials/helloworld/Cell.qml
@@ -5,10 +5,10 @@ import Qt 4.6
Item {
id: container
//![4]
- property alias color: rectangle.color
+ property alias cellColor: rectangle.color
//![4]
//![5]
- signal clicked(color color)
+ signal clicked(color cellColor)
//![5]
width: 40; height: 25
@@ -25,7 +25,7 @@ Item {
//![3]
MouseArea {
anchors.fill: parent
- onClicked: container.clicked(container.color)
+ onClicked: container.clicked(container.cellColor)
}
//![3]
}