aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/qsgparticleaffector_p.h
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-08-23 20:03:43 +1000
committerQt by Nokia <qt-info@nokia.com>2011-08-24 12:27:43 +0200
commit1253db60ee2586b1546cbaeeacb7b8c3d77ab255 (patch)
tree3566db4d1038b6b628fd73fba21ce4251385da56 /src/declarative/particles/qsgparticleaffector_p.h
parentb9a16a039692327a9f6975456667b5bd36afb4c8 (diff)
Absorb CustomEmitter/Affector
The signal is now on the Emitter/Affector base type, but only emitted if connected to (to save creating the v8 object) Change-Id: Ib5522e0f760caa17a6ad731b2dfbce9994a7664e Reviewed-on: http://codereview.qt.nokia.com/3393 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/declarative/particles/qsgparticleaffector_p.h')
-rw-r--r--src/declarative/particles/qsgparticleaffector_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/particles/qsgparticleaffector_p.h b/src/declarative/particles/qsgparticleaffector_p.h
index 4479f5d131..dd279c07b9 100644
--- a/src/declarative/particles/qsgparticleaffector_p.h
+++ b/src/declarative/particles/qsgparticleaffector_p.h
@@ -103,6 +103,7 @@ public:
}
signals:
+ void affectParticle(QDeclarativeV8Handle particle, qreal dt);
void systemChanged(QSGParticleSystem* arg);
@@ -189,6 +190,7 @@ protected:
bool m_active;
virtual void componentComplete();
QPointF m_offset;
+ bool isAffectConnected();
private:
QSet<int> m_groups;
QSet<QPair<int, int> > m_onceOffed;