diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-09-11 05:54:19 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-09-11 05:54:19 (GMT) |
commit | efc7963a15c204db48cb3b6560366410b640e5c3 (patch) | |
tree | 7cc1320c785b69299ad931865ca3127fdfc63240 | |
parent | c818cc5c950580e796528110f64cf90a81f68d28 (diff) | |
download | Qt-efc7963a15c204db48cb3b6560366410b640e5c3.zip Qt-efc7963a15c204db48cb3b6560366410b640e5c3.tar.gz Qt-efc7963a15c204db48cb3b6560366410b640e5c3.tar.bz2 |
Don't need to save and restore painter for tiling.
-rw-r--r-- | src/declarative/fx/qfximage.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/declarative/fx/qfximage.cpp b/src/declarative/fx/qfximage.cpp index 79b3ae1..3ac3f3c 100644 --- a/src/declarative/fx/qfximage.cpp +++ b/src/declarative/fx/qfximage.cpp @@ -252,17 +252,12 @@ void QFxImage::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *) if (width() != d->pix.width() || height() != d->pix.height()) { if (d->fillMode >= Tile) { - p->save(); - p->setClipRect(0, 0, width(), height(), Qt::IntersectClip); - if (d->fillMode == Tile) p->drawTiledPixmap(QRectF(0,0,width(),height()), d->pix); else if (d->fillMode == TileVertically) p->drawTiledPixmap(QRectF(0,0,d->pix.width(),height()), d->pix); else p->drawTiledPixmap(QRectF(0,0,width(),d->pix.height()), d->pix); - - p->restore(); } else { qreal widthScale = width() / qreal(d->pix.width()); qreal heightScale = height() / qreal(d->pix.height()); |