summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxtext.cpp
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/fx/qfxtext.cpp
parent5c9f8288cf642a51bdce46f2833b37e4f94d43d9 (diff)
downloadQt-fa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec.zip
Qt-fa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec.tar.gz
Qt-fa75cbdd3e1ae7b7d10d582498ae7e1d535f82ec.tar.bz2
Remove paintContents.
Diffstat (limited to 'src/declarative/fx/qfxtext.cpp')
-rw-r--r--src/declarative/fx/qfxtext.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/declarative/fx/qfxtext.cpp b/src/declarative/fx/qfxtext.cpp
index cb8af40..1313dca 100644
--- a/src/declarative/fx/qfxtext.cpp
+++ b/src/declarative/fx/qfxtext.cpp
@@ -765,17 +765,17 @@ void QFxText::setSmoothTransform(bool s)
update();
}
-void QFxText::paintContents(QPainter &p)
+void QFxText::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *)
{
Q_D(QFxText);
d->checkImgCache();
if (d->imgCache.isNull())
return;
- bool oldAA = p.testRenderHint(QPainter::Antialiasing);
- bool oldSmooth = p.testRenderHint(QPainter::SmoothPixmapTransform);
+ bool oldAA = p->testRenderHint(QPainter::Antialiasing);
+ bool oldSmooth = p->testRenderHint(QPainter::SmoothPixmapTransform);
if (d->smooth)
- p.setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform, d->smooth);
+ p->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform, d->smooth);
int w = width();
int h = height();
@@ -811,16 +811,16 @@ void QFxText::paintContents(QPainter &p)
d->imgCache.height() > height());
if (needClip) {
- p.save();
- p.setClipRect(boundingRect());
+ p->save();
+ p->setClipRect(boundingRect());
}
- p.drawPixmap(x, y, d->imgCache);
+ p->drawPixmap(x, y, d->imgCache);
if (needClip)
- p.restore();
+ p->restore();
if (d->smooth) {
- p.setRenderHint(QPainter::Antialiasing, oldAA);
- p.setRenderHint(QPainter::SmoothPixmapTransform, oldSmooth);
+ p->setRenderHint(QPainter::Antialiasing, oldAA);
+ p->setRenderHint(QPainter::SmoothPixmapTransform, oldSmooth);
}
}