aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/quick/demos/maroon/maroon.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/quick/demos/maroon/maroon.qml b/examples/quick/demos/maroon/maroon.qml
index 34f345f0e7..c6150a5b95 100644
--- a/examples/quick/demos/maroon/maroon.qml
+++ b/examples/quick/demos/maroon/maroon.qml
@@ -47,7 +47,7 @@ Item {
id: root
width: 320
height: 480
- property var gameState: Logic.newGameState(canvas);
+ property var gameState
property bool passedSplash: false
Image {
@@ -230,4 +230,6 @@ Item {
transitions: Transition {
NumberAnimation { properties: "x,y"; duration: 1200; easing.type: Easing.OutQuad }
}
+
+ Component.onCompleted: gameState = Logic.newGameState(canvas);
}