diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-11-05 04:03:47 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-11-05 04:46:23 (GMT) |
commit | 0ef5d89b540be963d1a8131f6625f990a4fe66e8 (patch) | |
tree | fe640558b514dc1720525043b954aeafe3d15940 /tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp | |
parent | 0ced984d3e2cb2a7a1a219ae7a9b09ff4e15a55c (diff) | |
download | Qt-0ef5d89b540be963d1a8131f6625f990a4fe66e8.zip Qt-0ef5d89b540be963d1a8131f6625f990a4fe66e8.tar.gz Qt-0ef5d89b540be963d1a8131f6625f990a4fe66e8.tar.bz2 |
Particles cleaned up and placed in in qmlgraphics/
API changes:
Removed bool streamIn
Added int emissionRate
Added int emissionVariance
Added void burst(count, emissionRate=-1)
While rewriting the internals to accomodate this, all other outstanding
particles bugs were believed fixed.
Task-number: QT-2392 QT-2391 QT-2390 QT-2406
Diffstat (limited to 'tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp')
-rw-r--r-- | tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp b/tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp index e50437a..ed68eaf 100644 --- a/tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp +++ b/tests/auto/declarative/qmlgraphicsparticles/tst_qmlgraphicsparticles.cpp @@ -91,8 +91,11 @@ void tst_QmlGraphicsParticles::properties() particles->setVelocityDeviation(100.0); QCOMPARE(particles->velocityDeviation(), 100.0); - particles->setEmitting(false); - QCOMPARE(particles->emitting(), false); + particles->setEmissionVariance(0.5); + QCOMPARE(particles->emissionVariance(),0.5); + + particles->setEmissionRate(12); + QCOMPARE(particles->emissionRate(), 12); } void tst_QmlGraphicsParticles::runs() |