aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/qsgmodelparticle.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-06-10 16:07:33 +1000
committerAlan Alpert <alan.alpert@nokia.com>2011-06-10 16:07:33 +1000
commit7b28a7eebeb8cbe5d356fc9b24651a36d73ab1ad (patch)
tree819592ab14dfc9c7e59ea42d02e998b77d4aa210 /src/declarative/particles/qsgmodelparticle.cpp
parent6e69712287fa2d6087e5423cc4b7aace8b790894 (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.cpp2
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);
}
}