diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-04-09 00:47:00 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-04-09 02:25:24 (GMT) |
commit | 8ba89fea4df4045490d7b557dabb753e7f7ae836 (patch) | |
tree | d1114b0b4f341ad289ff4bcbe7aa114518fde32e /examples/declarative/tutorials/samegame/samegame3/samegame.qml | |
parent | ca266d0037713c05d19dd6db9ba04f0c01811676 (diff) | |
download | Qt-8ba89fea4df4045490d7b557dabb753e7f7ae836.zip Qt-8ba89fea4df4045490d7b557dabb753e7f7ae836.tar.gz Qt-8ba89fea4df4045490d7b557dabb753e7f7ae836.tar.bz2 |
More tutorial improvments
Diffstat (limited to 'examples/declarative/tutorials/samegame/samegame3/samegame.qml')
-rw-r--r-- | examples/declarative/tutorials/samegame/samegame3/samegame.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/tutorials/samegame/samegame3/samegame.qml b/examples/declarative/tutorials/samegame/samegame3/samegame.qml index 9623932..cdf99d7 100644 --- a/examples/declarative/tutorials/samegame/samegame3/samegame.qml +++ b/examples/declarative/tutorials/samegame/samegame3/samegame.qml @@ -21,11 +21,11 @@ Rectangle { Item { id: gameCanvas property int score: 0 - property int tileSize: 40 + property int blockSize: 40 z: 20; anchors.centerIn: parent - width: parent.width - (parent.width % tileSize); - height: parent.height - (parent.height % tileSize); + width: parent.width - (parent.width % blockSize); + height: parent.height - (parent.height % blockSize); MouseArea { anchors.fill: parent; onClicked: SameGame.handleClick(mouse.x,mouse.y); @@ -45,7 +45,7 @@ Rectangle { anchors.bottom: screen.bottom Button { - text: "New Game"; onClicked: SameGame.initBoard(); + text: "New Game"; onClicked: SameGame.startNewGame(); anchors.left: parent.left; anchors.leftMargin: 3 anchors.verticalCenter: parent.verticalCenter } |