summaryrefslogtreecommitdiff
path: root/src/gui/graphicsview/qgraphicsscene.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@trolltech.com>2009-03-09 14:33:02 +0100
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-04-06 13:49:40 +0200
commit0985805ab3c7de5b15c115a98afb15944b6d93b9 (patch)
treedfcf1495ce1b04900fe58e8929f3b53faef184c5 /src/gui/graphicsview/qgraphicsscene.cpp
parentd74f1a91b05b943c1a8ae7847de6ee50b2093b89 (diff)
downloadqt4-tools-0985805ab3c7de5b15c115a98afb15944b6d93b9.tar.gz
Fixes: Don't fill the pixmap because we will copy the cache into it.
RevBy: bnilsen AutoTest: All pass + plasma ok
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsscene.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp
index b5095070a8..8a67d24fd0 100644
--- a/src/gui/graphicsview/qgraphicsscene.cpp
+++ b/src/gui/graphicsview/qgraphicsscene.cpp
@@ -4736,11 +4736,9 @@ void QGraphicsScenePrivate::drawItemHelper(QGraphicsItem *item, QPainter *painte
if (newCacheIndent != deviceData->cacheIndent || deviceRect.size() != pix.size()) {
QPoint diff = newCacheIndent - deviceData->cacheIndent;
QPixmap newPix(deviceRect.size());
- // ### Investigate removing this fill (test with Plasma and
- // graphicssystem raster).
- newPix.fill(Qt::transparent);
if (!pix.isNull()) {
QPainter newPixPainter(&newPix);
+ newPixPainter.setCompositionMode(QPainter::CompositionMode_Source);
newPixPainter.drawPixmap(-diff, pix);
newPixPainter.end();
}