diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-06-10 16:07:33 +1000 |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2011-06-10 16:07:33 +1000 |
commit | 7b28a7eebeb8cbe5d356fc9b24651a36d73ab1ad (patch) | |
tree | 819592ab14dfc9c7e59ea42d02e998b77d4aa210 /src/declarative/particles/qsgmodelparticle.cpp | |
parent | 6e69712287fa2d6087e5423cc4b7aace8b790894 (diff) |
Add delegate property to ItemParticle
Also add burst(n,x,y) to ParticleEmitter, and a demo that uses both.
Diffstat (limited to 'src/declarative/particles/qsgmodelparticle.cpp')
-rw-r--r-- | src/declarative/particles/qsgmodelparticle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/particles/qsgmodelparticle.cpp b/src/declarative/particles/qsgmodelparticle.cpp index 704b9a298c..b0b4fa4ad2 100644 --- a/src/declarative/particles/qsgmodelparticle.cpp +++ b/src/declarative/particles/qsgmodelparticle.cpp @@ -177,6 +177,7 @@ void QSGModelParticle::processPending() foreach(QSGItem* item, m_deletables){ item->setOpacity(0.); m_model->release(item); + m_deletables.removeAll(item); } foreach(int pos, m_requests){ @@ -189,6 +190,7 @@ void QSGModelParticle::processPending() mpa->attach(); } m_items[pos]->setParentItem(this); + m_requests.removeAll(pos); } } |