summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/samegame/samegame1/Button.qml
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-04-01 02:49:35 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-04-01 05:10:50 (GMT)
commit919ee9dd93ad382ddd813d58a356fd3f8d179046 (patch)
tree08f89cc2c90f9cc85318d2e32c0b305310fe9965 /examples/declarative/tutorials/samegame/samegame1/Button.qml
parent7e94b6e0f706284088d52054ef0d1be0a13ea186 (diff)
downloadQt-919ee9dd93ad382ddd813d58a356fd3f8d179046.zip
Qt-919ee9dd93ad382ddd813d58a356fd3f8d179046.tar.gz
Qt-919ee9dd93ad382ddd813d58a356fd3f8d179046.tar.bz2
Doc improvements, fixes
Diffstat (limited to 'examples/declarative/tutorials/samegame/samegame1/Button.qml')
-rw-r--r--examples/declarative/tutorials/samegame/samegame1/Button.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/tutorials/samegame/samegame1/Button.qml b/examples/declarative/tutorials/samegame/samegame1/Button.qml
index 2e31ff8..5e28da7 100644
--- a/examples/declarative/tutorials/samegame/samegame1/Button.qml
+++ b/examples/declarative/tutorials/samegame/samegame1/Button.qml
@@ -14,11 +14,11 @@ Rectangle {
gradient: Gradient {
GradientStop {
id: topGrad; position: 0.0
- color: if (mr.pressed) { activePalette.dark } else { activePalette.light } }
+ color: if (mouseArea.pressed) { activePalette.dark } else { activePalette.light } }
GradientStop { position: 1.0; color: activePalette.button }
}
- MouseArea { id: mr; anchors.fill: parent; onClicked: container.clicked() }
+ MouseArea { id: mouseArea; anchors.fill: parent; onClicked: container.clicked() }
Text {
id: txtItem; text: container.text; anchors.centerIn: container; color: activePalette.buttonText