aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/qsgitemparticle_p.h
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-06-15 18:52:26 +1000
committerAlan Alpert <alan.alpert@nokia.com>2011-06-15 18:52:26 +1000
commitfab0da3853efc5ef2f1a507f7d054b8a0dd3b9ac (patch)
tree56eeb5e2175c0abed7afb47821de0940ca7b2e52 /src/declarative/particles/qsgitemparticle_p.h
parent7b22f02961a97c0fa07127ea3ff26b8435a617b8 (diff)
Rewrite particle system to cope with changing particle counts
And might do it again... Caught up in this massive change were the following smaller ones: -Some custom particle examples -delegate property on ItemParticle and an example with it
Diffstat (limited to 'src/declarative/particles/qsgitemparticle_p.h')
-rw-r--r--src/declarative/particles/qsgitemparticle_p.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/declarative/particles/qsgitemparticle_p.h b/src/declarative/particles/qsgitemparticle_p.h
index 3b7db519de..7cea63baa1 100644
--- a/src/declarative/particles/qsgitemparticle_p.h
+++ b/src/declarative/particles/qsgitemparticle_p.h
@@ -65,8 +65,6 @@ public:
virtual QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *);
virtual void load(QSGParticleData*);
virtual void reload(QSGParticleData*);
- virtual void setCount(int c);
- virtual int count();
static QSGItemParticleAttached *qmlAttachedProperties(QObject *object);
QDeclarativeComponent* delegate() const
@@ -97,13 +95,13 @@ public slots:
protected:
virtual void reset();
+ virtual void resize(int oldCount, int newCount);
void prepareNextFrame();
private slots:
void tick();
private:
QList<QSGItem* > m_deletables;
QList< int > m_loadables;
- int m_particleCount;
bool m_fade;
QList<QSGItem*> m_pendingItems;