diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-04-09 10:47:00 +1000 |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-04-09 12:25:24 +1000 |
commit | 8ba89fea4df4045490d7b557dabb753e7f7ae836 (patch) | |
tree | d1114b0b4f341ad289ff4bcbe7aa114518fde32e /examples/declarative/tutorials/samegame/samegame4/samegame.qml | |
parent | ca266d0037713c05d19dd6db9ba04f0c01811676 (diff) | |
download | qt4-tools-8ba89fea4df4045490d7b557dabb753e7f7ae836.tar.gz |
More tutorial improvments
Diffstat (limited to 'examples/declarative/tutorials/samegame/samegame4/samegame.qml')
-rw-r--r-- | examples/declarative/tutorials/samegame/samegame4/samegame.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/tutorials/samegame/samegame4/samegame.qml b/examples/declarative/tutorials/samegame/samegame4/samegame.qml index fe35e3b158..5d5c81fe95 100644 --- a/examples/declarative/tutorials/samegame/samegame4/samegame.qml +++ b/examples/declarative/tutorials/samegame/samegame4/samegame.qml @@ -20,11 +20,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); @@ -63,7 +63,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 } |