summaryrefslogtreecommitdiffstats
path: root/src/declarative/extra
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-31 03:59:29 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-31 03:59:29 (GMT)
commitfa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec (patch)
tree71006eb04d2c55bfaa13797f01df81290ae54aa1 /src/declarative/extra
parent5c9f8288cf642a51bdce46f2833b37e4f94d43d9 (diff)
downloadQt-fa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec.zip
Qt-fa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec.tar.gz
Qt-fa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec.tar.bz2
Remove paintContents.
Diffstat (limited to 'src/declarative/extra')
-rw-r--r--src/declarative/extra/qfxparticles.cpp10
-rw-r--r--src/declarative/extra/qfxparticles.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/declarative/extra/qfxparticles.cpp b/src/declarative/extra/qfxparticles.cpp
index 0f22165..6d41434 100644
--- a/src/declarative/extra/qfxparticles.cpp
+++ b/src/declarative/extra/qfxparticles.cpp
@@ -347,7 +347,7 @@ public:
maxX = minX = maxY = minY = 0;
}
- void paintContents(QPainter &p);
+ void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
void updateSize();
@@ -1067,13 +1067,13 @@ void QFxParticlesPainter::updateSize()
setY(myY);
}
-void QFxParticles::paintContents(QPainter &p)
+void QFxParticles::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *)
{
Q_UNUSED(p);
//painting is done by the ParticlesPainter, so it can have the right size
}
-void QFxParticlesPainter::paintContents(QPainter &p)
+void QFxParticlesPainter::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *)
{
if (d->image.isNull())
return;
@@ -1083,8 +1083,8 @@ void QFxParticlesPainter::paintContents(QPainter &p)
for (int i = 0; i < d->particles.count(); ++i) {
const QFxParticle &particle = d->particles.at(i);
- p.setOpacity(particle.opacity);
- p.drawPixmap(particle.x - myX, particle.y - myY, d->image);
+ p->setOpacity(particle.opacity);
+ p->drawPixmap(particle.x - myX, particle.y - myY, d->image);
}
}
diff --git a/src/declarative/extra/qfxparticles.h b/src/declarative/extra/qfxparticles.h
index 2574f7f..bde6ec6 100644
--- a/src/declarative/extra/qfxparticles.h
+++ b/src/declarative/extra/qfxparticles.h
@@ -203,7 +203,7 @@ public:
QFxParticleMotion *motion() const;
void setMotion(QFxParticleMotion *);
- void paintContents(QPainter &p);
+ void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
protected:
virtual void componentComplete();