Update to not use old properties.
authorAlan Alpert <alan.alpert@nokia.com>
Fri, 23 Dec 2011 03:39:12 +0000 (13:39 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 30 Dec 2011 00:43:24 +0000 (01:43 +0100)
Change-Id: I428d702613186adfc761925de23ae67677f286ba
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
examples/declarative/snake/content/Cookie.qml
examples/declarative/snake/content/Link.qml
examples/declarative/snake/snake.qml

index d9fedd9..f3c49fa 100644 (file)
@@ -79,9 +79,9 @@ Item  {
             anchors.fill: parent
             group: "star"
             emitRate: 50
-            emitting: false
+            enabled: false
             lifeSpan: 700
-            acceleration: AngledDirection { angleVariation: 360; magnitude: 200 }
+            acceleration: AngleDirection { angleVariation: 360; magnitude: 200 }
         }
     }
 
index 31ad622..259cab6 100644 (file)
@@ -104,9 +104,9 @@ Item { id:link
             anchors.fill: parent
             group: "star"
             emitRate: 50
-            emitting: false
+            enabled: false
             lifeSpan: 700
-            acceleration: AngledDirection { angleVariation: 360; magnitude: 200 }
+            acceleration: AngleDirection { angleVariation: 360; magnitude: 200 }
         }
     }
 
index 03657fe..f21fc31 100644 (file)
@@ -76,7 +76,7 @@ Rectangle {
     Timer {
         id: heartbeat;
         interval: heartbeatInterval;
-        running: activeGame && Qt.application.active
+        running: activeGame
         repeat: true
         onTriggered: { Logic.move() }
     }
@@ -105,7 +105,7 @@ Rectangle {
         source: "content/pics/pause.png"
         anchors.centerIn: parent;
         //opacity is deliberately not animated
-        opacity: activeGame && !Qt.application.active
+        opacity: 0 //Was !Qt.application.active && activeGame, but application doesn't work (QTBUG-23331)
     }
 
     Image {