diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-09-16 07:07:26 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-09-16 07:07:26 (GMT) |
commit | 30377d51a8568b9b778b58a63fb036e35a879124 (patch) | |
tree | 693168d1947a5cbcb93bc1de391c9a140f44b00c | |
parent | dbf669ae9c2b26b83bd2f3afe2785324d26cd65f (diff) | |
download | Qt-30377d51a8568b9b778b58a63fb036e35a879124.zip Qt-30377d51a8568b9b778b58a63fb036e35a879124.tar.gz Qt-30377d51a8568b9b778b58a63fb036e35a879124.tar.bz2 |
No need to copy the pixmap.
-rw-r--r-- | src/declarative/fx/qfxborderimage.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/declarative/fx/qfxborderimage.cpp b/src/declarative/fx/qfxborderimage.cpp index d199d5d..ee505f2 100644 --- a/src/declarative/fx/qfxborderimage.cpp +++ b/src/declarative/fx/qfxborderimage.cpp @@ -386,11 +386,9 @@ void QFxBorderImage::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidge if (d->smooth) p->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform, d->smooth); - QPixmap pix = d->pix; - QMargins margins(border()->top(), border()->left(), border()->bottom(), border()->right()); QTileRules rules((Qt::TileRule)d->horizontalTileMode, (Qt::TileRule)d->verticalTileMode); - qDrawBorderPixmap(p, QRect(0, 0, (int)d->width, (int)d->height), margins, pix, pix.rect(), margins, rules); + qDrawBorderPixmap(p, QRect(0, 0, (int)d->width, (int)d->height), margins, d->pix, d->pix.rect(), margins, rules); if (d->smooth) { p->setRenderHint(QPainter::Antialiasing, oldAA); p->setRenderHint(QPainter::SmoothPixmapTransform, oldSmooth); |