summaryrefslogtreecommitdiffstats
path: root/src/declarative/extra
diff options
context:
space:
mode:
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();