diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-24 12:13:42 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-26 09:05:19 +0200 |
commit | a57085f00b146798a0cca0d52dfa127232c3e659 (patch) | |
tree | 7b4df3f155d431aeb6f3aae01943a3411c812a7b /src/particles/qquickcustomaffector.cpp | |
parent | 12fd2ccd3fa2dc0133b5a3fb89f9fdf5cf721232 (diff) |
Fix API of QQmlV4Handle
Change-Id: Iac4a3fefebd33a5990408598486231a5add8e639
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/particles/qquickcustomaffector.cpp')
-rw-r--r-- | src/particles/qquickcustomaffector.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/particles/qquickcustomaffector.cpp b/src/particles/qquickcustomaffector.cpp index 583e3b6555..7c4d45d24e 100644 --- a/src/particles/qquickcustomaffector.cpp +++ b/src/particles/qquickcustomaffector.cpp @@ -150,11 +150,11 @@ void QQuickCustomAffector::affectSystem(qreal dt) QV4::Scoped<QV4::ArrayObject> array(scope, v4->newArrayObject(toAffect.size())); QV4::ScopedValue v(scope); for (int i=0; i<toAffect.size(); i++) - array->putIndexed(i, (v = toAffect[i]->v4Value().toValue())); + array->putIndexed(i, (v = toAffect[i]->v4Value())); if (dt >= simulationCutoff || dt <= simulationDelta) { affectProperties(toAffect, dt); - emit affectParticles(QQmlV4Handle(array.asValue()), dt); + emit affectParticles(QQmlV4Handle(array), dt); } else { int realTime = m_system->timeInt; m_system->timeInt -= dt * 1000.0; @@ -162,12 +162,12 @@ void QQuickCustomAffector::affectSystem(qreal dt) m_system->timeInt += simulationDelta * 1000.0; dt -= simulationDelta; affectProperties(toAffect, simulationDelta); - emit affectParticles(QQmlV4Handle(array.asValue()), simulationDelta); + emit affectParticles(QQmlV4Handle(array), simulationDelta); } m_system->timeInt = realTime; if (dt > 0.0) { affectProperties(toAffect, dt); - emit affectParticles(QQmlV4Handle(array.asValue()), dt); + emit affectParticles(QQmlV4Handle(array), dt); } } |