pulse calls should use ms instead of s
authorKent Hansen <kent.hansen@nokia.com>
Thu, 29 Sep 2011 05:17:32 +0000 (07:17 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 29 Sep 2011 05:25:20 +0000 (07:25 +0200)
This updates the examples to reflect the API change
that was done in commit f0dc82305eb9c9297d73cba67634e9e4bc4f3b84

Change-Id: Id08896cbe3a47adc0b02797faddf50281a24c625
Reviewed-on: http://codereview.qt-project.org/5702
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
examples/declarative/particles/emitters/timedgroupchanges.qml
examples/declarative/particles/itemparticle/particleview.qml
examples/declarative/particles/plasmapatrol/content/LaserHardpoint.qml
examples/declarative/samegame/SamegameCore/BoomBlock.qml

index 5da64f1..e668436 100644 (file)
@@ -82,7 +82,7 @@ Rectangle {
             running: true
             triggeredOnStart: true
             repeat: true
-            onTriggered:startingEmitter.pulse(0.1);
+            onTriggered:startingEmitter.pulse(100);
         }
         Emitter {
             id: startingEmitter
index 0d08411..ddc447b 100644 (file)
@@ -128,7 +128,7 @@ Item {
         alertItem = alertDelegate.createObject(root);
         alertItem.x = root.width/2 - alertItem.width/2
         alertItem.y = root.height/2 - alertItem.height/2
-        spawnFireworks.pulse(0.2);
+        spawnFireworks.pulse(200);
         stopAlert.start();
     }
     focus: true
index 007d533..4c2254d 100644 (file)
@@ -81,7 +81,7 @@ Item {
             offset = Math.random() * 100;
         }
         target = container.mapFromItem(targetArg, offset + targetArg.width/2, offset + targetArg.height/2);
-        emitter.pulse(0.10);
+        emitter.pulse(100);
  //       console.log("Fire box: " +  Math.min(container.width/2, target.x) + "," + Math.min(container.height/2, target.y) + " " + (Math.max(container.width/2, target.x) - Math.min(container.width/2, target.x)) + "," + (Math.max(container.height/2, target.y) - Math.min(container.height/2, target.y)));
     }
     Emitter {
index df3e9bd..e5d4f40 100644 (file)
@@ -104,7 +104,7 @@ Item {
 
         State {
             name: "DeathState"; when: dying == true
-            StateChangeScript { script: particles.pulse(0.1); }
+            StateChangeScript { script: particles.pulse(100); }
             PropertyChanges { target: img; opacity: 0 }
             StateChangeScript { script: block.destroy(1000); }
         }