summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-11-25 15:04:00 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-11-25 15:04:00 (GMT)
commit59a0002b1eaedd1961136b364a595c376755e085 (patch)
treee72bd7181e5cab0b0cea14f0efaa65ba49a0a107 /tests/auto/declarative/visual
parentb74e226c09bc37043a06b24029e0e22e4f3cdd16 (diff)
downloadQt-59a0002b1eaedd1961136b364a595c376755e085.zip
Qt-59a0002b1eaedd1961136b364a595c376755e085.tar.gz
Qt-59a0002b1eaedd1961136b364a595c376755e085.tar.bz2
Treat emissionRate=0 like emitting=false
Including stopping the timer because we arenæt emitting anything. Because emissionRate=0 is exactly the same as emitting=false, the emitting property has been removed. Task-number: QTBUG-6209
Diffstat (limited to 'tests/auto/declarative/visual')
-rw-r--r--tests/auto/declarative/visual/qmlgraphicsparticles/particles.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/declarative/visual/qmlgraphicsparticles/particles.qml b/tests/auto/declarative/visual/qmlgraphicsparticles/particles.qml
index a7a8143..2d481c9 100644
--- a/tests/auto/declarative/visual/qmlgraphicsparticles/particles.qml
+++ b/tests/auto/declarative/visual/qmlgraphicsparticles/particles.qml
@@ -3,7 +3,12 @@ import Qt 4.6
Rectangle {
width: 640; height: 480; color: "black"
- Particles { emitting: false }
+ Particles { id:particlesAnotEmitting
+ y:60; width: 260; height:30; source: "star.png";
+ lifeSpan:1000; count: 50; angle:70; angleDeviation:36;
+ velocity:30; velocityDeviation:10; emissionRate: 0
+ ParticleMotionWander { yvariance:5; xvariance:30; pace:100 }
+ }
Particles { id:particlesA
y:0; width: 260; height:30; source: "star.png";
lifeSpan:1000; count: 50; angle:70; angleDeviation:36;