diff options
author | aavit <qt-info@nokia.com> | 2011-09-19 07:44:42 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2011-09-19 07:44:42 (GMT) |
commit | 58dba74c6997fe9503ec2781940ed92d559ed503 (patch) | |
tree | 91f9078e9c5db0990f973859b600647af769804d /src | |
parent | 53d9e3620ede7492c141402d9365d5c0dd7c10fd (diff) | |
parent | 312fea50f8f5f2a114061b924a1cbf05850167d9 (diff) | |
download | Qt-58dba74c6997fe9503ec2781940ed92d559ed503.zip Qt-58dba74c6997fe9503ec2781940ed92d559ed503.tar.gz Qt-58dba74c6997fe9503ec2781940ed92d559ed503.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-fire-team
Diffstat (limited to 'src')
-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); |