From 2b0d3bf812273e762e7aa27a58909ade59590c0f Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 8 May 2013 15:56:03 +0200 Subject: Remove v8 dependencies from QQmlV4Handle Change-Id: I87d2183738ec7cfeea846a28f2b9aed79a233f68 Reviewed-by: Simon Hausmann --- src/particles/qquickcustomaffector.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/particles/qquickcustomaffector.cpp') diff --git a/src/particles/qquickcustomaffector.cpp b/src/particles/qquickcustomaffector.cpp index 9c46510091..37db984e92 100644 --- a/src/particles/qquickcustomaffector.cpp +++ b/src/particles/qquickcustomaffector.cpp @@ -145,11 +145,11 @@ void QQuickCustomAffector::affectSystem(qreal dt) v8::Handle array = v8::Array::New(toAffect.size()); for (int i=0; iSet(i, toAffect[i]->v8Value().toV8Handle()); + array->Set(i, toAffect[i]->v4Value().toValue()); if (dt >= simulationCutoff || dt <= simulationDelta) { affectProperties(toAffect, dt); - emit affectParticles(QQmlV4Handle::fromV8Handle(array), dt); + emit affectParticles(QQmlV4Handle(array->v4Value()), dt); } else { int realTime = m_system->timeInt; m_system->timeInt -= dt * 1000.0; @@ -157,12 +157,12 @@ void QQuickCustomAffector::affectSystem(qreal dt) m_system->timeInt += simulationDelta * 1000.0; dt -= simulationDelta; affectProperties(toAffect, simulationDelta); - emit affectParticles(QQmlV4Handle::fromV8Handle(array), simulationDelta); + emit affectParticles(QQmlV4Handle(array->v4Value()), simulationDelta); } m_system->timeInt = realTime; if (dt > 0.0) { affectProperties(toAffect, dt); - emit affectParticles(QQmlV4Handle::fromV8Handle(array), dt); + emit affectParticles(QQmlV4Handle(array->v4Value()), dt); } } -- cgit v1.2.3