summaryrefslogtreecommitdiffstats
path: root/demos/declarative/samegame/samegame.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/samegame/samegame.qml')
-rw-r--r--demos/declarative/samegame/samegame.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/declarative/samegame/samegame.qml b/demos/declarative/samegame/samegame.qml
index 709f4e9..ea7c14c 100644
--- a/demos/declarative/samegame/samegame.qml
+++ b/demos/declarative/samegame/samegame.qml
@@ -5,8 +5,6 @@ Rectangle {
id: screen
width: 490; height: 720
- Script { source: "content/samegame.js" }
-
SystemPalette { id: activePalette; colorGroup: Qt.Active }
Item {
@@ -23,9 +21,11 @@ Rectangle {
property int score: 0
property int tileSize: 40
+ Script { source: "content/samegame.js" }
+
z: 20; anchors.centerIn: parent
- width: parent.width - (parent.width % tileSize);
- height: parent.height - (parent.height % tileSize);
+ width: parent.width - (parent.width % getTileSize());
+ height: parent.height - (parent.height % getTileSize());
MouseRegion {
id: gameMR