diff options
author | Sami Lempinen <sami.lempinen@nokia.com> | 2011-10-03 12:07:49 (GMT) |
---|---|---|
committer | Sami Lempinen <sami.lempinen@nokia.com> | 2011-10-03 12:07:49 (GMT) |
commit | d22211b970dbab1382c97ef8259c91adc2b8a4de (patch) | |
tree | 8e2a946b25ea187b18777018e19b21e2c5bf9df3 /src/gui/image | |
parent | b4fb55db3939219e976d53c32b42bf28acaa41b1 (diff) | |
parent | 1f459f4040845919ffd46cea35958486f41abb3c (diff) | |
download | Qt-d22211b970dbab1382c97ef8259c91adc2b8a4de.zip Qt-d22211b970dbab1382c97ef8259c91adc2b8a4de.tar.gz Qt-d22211b970dbab1382c97ef8259c91adc2b8a4de.tar.bz2 |
Merge remote-tracking branch 'qt/4.8'
Diffstat (limited to 'src/gui/image')
-rw-r--r-- | src/gui/image/qpixmapfilter.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gui/image/qpixmapfilter.cpp b/src/gui/image/qpixmapfilter.cpp index a33e173..6c03990 100644 --- a/src/gui/image/qpixmapfilter.cpp +++ b/src/gui/image/qpixmapfilter.cpp @@ -1362,16 +1362,14 @@ void QPixmapDropShadowFilter::draw(QPainter *p, qt_blurImage(&blurPainter, tmp, d->radius, false, true); blurPainter.end(); - tmp = blurred; - // blacken the image... - tmpPainter.begin(&tmp); - tmpPainter.setCompositionMode(QPainter::CompositionMode_SourceIn); - tmpPainter.fillRect(tmp.rect(), d->color); - tmpPainter.end(); + QPainter blackenPainter(&blurred); + blackenPainter.setCompositionMode(QPainter::CompositionMode_SourceIn); + blackenPainter.fillRect(blurred.rect(), d->color); + blackenPainter.end(); // draw the blurred drop shadow... - p->drawImage(pos, tmp); + p->drawImage(pos, blurred); // Draw the actual pixmap... p->drawPixmap(pos, px, src); |