diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-08-23 20:03:43 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-24 12:27:43 +0200 |
commit | 1253db60ee2586b1546cbaeeacb7b8c3d77ab255 (patch) | |
tree | 3566db4d1038b6b628fd73fba21ce4251385da56 /src/declarative/particles/qsgparticleaffector_p.h | |
parent | b9a16a039692327a9f6975456667b5bd36afb4c8 (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.h | 2 |
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; |