aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-09-29 07:17:32 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-29 07:25:20 +0200
commitc06f94728ba826531210926c972796d119422dad (patch)
treec4991d5c7a4b24538e69caf8f90753b1780aadc8 /examples
parent703c808a5649169dd6b9605af273374cd62951d1 (diff)
pulse calls should use ms instead of s
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>
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/particles/emitters/timedgroupchanges.qml2
-rw-r--r--examples/declarative/particles/itemparticle/particleview.qml2
-rw-r--r--examples/declarative/particles/plasmapatrol/content/LaserHardpoint.qml2
-rw-r--r--examples/declarative/samegame/SamegameCore/BoomBlock.qml2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/particles/emitters/timedgroupchanges.qml b/examples/declarative/particles/emitters/timedgroupchanges.qml
index 5da64f1e50..e668436684 100644
--- a/examples/declarative/particles/emitters/timedgroupchanges.qml
+++ b/examples/declarative/particles/emitters/timedgroupchanges.qml
@@ -82,7 +82,7 @@ Rectangle {
running: true
triggeredOnStart: true
repeat: true
- onTriggered:startingEmitter.pulse(0.1);
+ onTriggered:startingEmitter.pulse(100);
}
Emitter {
id: startingEmitter
diff --git a/examples/declarative/particles/itemparticle/particleview.qml b/examples/declarative/particles/itemparticle/particleview.qml
index 0d08411f5e..ddc447bddd 100644
--- a/examples/declarative/particles/itemparticle/particleview.qml
+++ b/examples/declarative/particles/itemparticle/particleview.qml
@@ -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
diff --git a/examples/declarative/particles/plasmapatrol/content/LaserHardpoint.qml b/examples/declarative/particles/plasmapatrol/content/LaserHardpoint.qml
index 007d533b56..4c2254d570 100644
--- a/examples/declarative/particles/plasmapatrol/content/LaserHardpoint.qml
+++ b/examples/declarative/particles/plasmapatrol/content/LaserHardpoint.qml
@@ -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 {
diff --git a/examples/declarative/samegame/SamegameCore/BoomBlock.qml b/examples/declarative/samegame/SamegameCore/BoomBlock.qml
index df3e9bd8fa..e5d4f4090b 100644
--- a/examples/declarative/samegame/SamegameCore/BoomBlock.qml
+++ b/examples/declarative/samegame/SamegameCore/BoomBlock.qml
@@ -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); }
}