QQuickParticleEmitter: Call particleCountChanged by hand on maximumEmittedChanged.
authorRobin Burchell <robin.burchell@viroteck.net>
Mon, 12 Jan 2015 10:06:46 +0000 (11:06 +0100)
committerRobin Burchell <robin.burchell@viroteck.net>
Sat, 17 Jan 2015 13:19:19 +0000 (14:19 +0100)
commit88ae8d651739c3768ffb27683a6728f0f318b8d5
tree45a1bd5744891ffbfed71bef33ad3d4a439a6fad
parentf09f3655e4d6076b5b35563fc485fd102a6fc903
QQuickParticleEmitter: Call particleCountChanged by hand on maximumEmittedChanged.

Analysis of QObject connections showed that a large number of connections were
set up to the particles system. As this particular case is cheap, we can do it
inline instead, and avoid the connection-per-instance.

Change-Id: Iec2049fff2c257dc39662ef2b5a8ecd75bbd870d
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
src/particles/qquickparticleemitter.cpp