Manage m_activeCount centrally
authorAlan Alpert <alan.alpert@nokia.com>
Mon, 25 Jul 2011 05:12:17 +0000 (15:12 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 28 Jul 2011 06:39:33 +0000 (08:39 +0200)
commit02bf8f421d32ef7449b0fe2fe1ad62fea33bcc61
treefc89fff09bb3a10d9b5f0e385144c67d876f09e2
parentd197b2d2cdb8787456cc9b7da27b7400e3b7a159
Manage m_activeCount centrally

Fixes issue where it wasn't being managed right and kept going negative.
This commit also adds setVisible in a few places missed by the last
change.

Task-number: QTBUG-20437
Change-Id: I4efaab7b34784dfbc42dd1acd0a5be3b38a8605a
Reviewed-on: http://codereview.qt.nokia.com/2074
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/declarative/particles/qsgitemparticle.cpp
src/declarative/particles/qsgmodelparticle.cpp