aboutsummaryrefslogtreecommitdiffstats
path: root/src/particles/qquickcustomaffector.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-05-08 15:56:03 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-08 19:55:58 +0200
commit2b0d3bf812273e762e7aa27a58909ade59590c0f (patch)
tree6475e09cfa3512a6bff77dd0947cd664a8b47ea0 /src/particles/qquickcustomaffector.cpp
parent2b01b808e75041005bca903cf50f528716e285e3 (diff)
Remove v8 dependencies from QQmlV4Handle
Change-Id: I87d2183738ec7cfeea846a28f2b9aed79a233f68 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/particles/qquickcustomaffector.cpp')
-rw-r--r--src/particles/qquickcustomaffector.cpp8
1 files changed, 4 insertions, 4 deletions
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<v8::Array> array = v8::Array::New(toAffect.size());
for (int i=0; i<toAffect.size(); i++)
- array->Set(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);
}
}