summaryrefslogtreecommitdiffstats
path: root/demos/declarative/minehunt/minehunt.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/minehunt/minehunt.qml')
-rw-r--r--demos/declarative/minehunt/minehunt.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/declarative/minehunt/minehunt.qml b/demos/declarative/minehunt/minehunt.qml
index 596e82d..ff00d83 100644
--- a/demos/declarative/minehunt/minehunt.qml
+++ b/demos/declarative/minehunt/minehunt.qml
@@ -107,8 +107,8 @@ Item {
onPressed: {
field.clickx = flipable.parent.x;
field.clicky = flipable.parent.y;
- row = Math.floor(index/9);
- col = index - (Math.floor(index/9) * 9);
+ var row = Math.floor(index/9);
+ var col = index - (Math.floor(index/9) * 9);
if (mouse.button==undefined || mouse.button==Qt.RightButton) {
flag(row,col);
} else {
@@ -131,6 +131,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
}
Repeater {
+ id: repeater
model: tiles
x: 1
y: 1