From d5fd163f325329de5361a3f0018e23ff342d73a1 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 3 Dec 2013 17:25:41 +0100 Subject: Fix binding loop in Maroon in Trouble QML demo Task-number: QTBUG-35210 Change-Id: I44bd9f19acba5b59711aa4ca3d2b12c246afcc59 Reviewed-by: Akseli Salovaara Reviewed-by: Alan Alpert Reviewed-by: Sebastian Wozny --- examples/quick/demos/maroon/maroon.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3