demos/declarative/snake/snake.qml
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
child 37 758a864f9613
--- a/demos/declarative/snake/snake.qml	Tue Jul 06 15:10:48 2010 +0300
+++ b/demos/declarative/snake/snake.qml	Wed Aug 18 10:37:55 2010 +0300
@@ -86,7 +86,7 @@
         onTriggered: { Logic.moveSkull() }
     }
     Timer {
-
+	id: startNewGameTimer;
         interval: 700;
         onTriggered: { Logic.startNewGame(); }
     }
@@ -177,7 +177,6 @@
             id: progressIndicator
             color: "#221edd";
             width: 0;
-            Behavior on width { NumberAnimation { duration: startHeartbeatTimer.running ? 1000 : 0}}
             height: 30;
         }
     }
@@ -227,4 +226,13 @@
         }
     ]
 
+    transitions: [
+        Transition {
+            from: "*"
+            to: "starting"
+            NumberAnimation { target: progressIndicator; property: "width"; duration: 1000 }
+
+        }
+    ]
+
 }