Fix binding loop in Maroon in Trouble QML demo
authorTopi Reinio <topi.reinio@digia.com>
Tue, 3 Dec 2013 16:25:41 +0000 (17:25 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 4 Dec 2013 10:21:51 +0000 (11:21 +0100)
Task-number: QTBUG-35210
Change-Id: I44bd9f19acba5b59711aa4ca3d2b12c246afcc59
Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Sebastian Wozny <swozny@blackberry.com>
examples/quick/demos/maroon/maroon.qml

index 34f345f..c6150a5 100644 (file)
@@ -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);
 }