aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/particles/affectors/tst_affectors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/particles/affectors/tst_affectors.cpp')
-rw-r--r--tests/benchmarks/particles/affectors/tst_affectors.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/benchmarks/particles/affectors/tst_affectors.cpp b/tests/benchmarks/particles/affectors/tst_affectors.cpp
index 18068b2be2..bd9e4e1d6c 100644
--- a/tests/benchmarks/particles/affectors/tst_affectors.cpp
+++ b/tests/benchmarks/particles/affectors/tst_affectors.cpp
@@ -83,7 +83,7 @@ void tst_affectors::test_basic()
{
QFETCH(int, dt);
QQuickView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml");
- QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
+ QQuickParticleSystem* system = view->rootObject()->findChild<QQuickParticleSystem*>("system");
//Pretend we're running, but we manually advance the simulation
system->m_running = true;
system->m_animation = 0;
@@ -99,7 +99,7 @@ void tst_affectors::test_basic()
int stillAlive = 0;
QVERIFY(extremelyFuzzyCompare(system->groupData[0]->size(), 1000, 10));//Small simulation variance is permissible.
- foreach (QSGParticleData *d, system->groupData[0]->data) {
+ foreach (QQuickParticleData *d, system->groupData[0]->data) {
if (d->t == -1)
continue; //Particle data unused
@@ -123,7 +123,7 @@ void tst_affectors::test_filtered()
{
QFETCH(int, dt);
QQuickView* view = createView(QCoreApplication::applicationDirPath() + "/data/filtered.qml");
- QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
+ QQuickParticleSystem* system = view->rootObject()->findChild<QQuickParticleSystem*>("system");
//Pretend we're running, but we manually advance the simulation
system->m_running = true;
system->m_animation = 0;
@@ -139,7 +139,7 @@ void tst_affectors::test_filtered()
int stillAlive = 0;
QVERIFY(extremelyFuzzyCompare(system->groupData[1]->size(), 1000, 10));//Small simulation variance is permissible.
- foreach (QSGParticleData *d, system->groupData[1]->data) {
+ foreach (QQuickParticleData *d, system->groupData[1]->data) {
if (d->t == -1)
continue; //Particle data unused