summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscene.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@trolltech.com>2009-03-09 13:33:02 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-04-15 10:17:11 (GMT)
commitd4fcb7328efdd865ccc2db53ba428104073ed7ba (patch)
tree5e0396c9599d9bd44285ff749e02224d9240accf /src/gui/graphicsview/qgraphicsscene.cpp
parentb1b5f92c18774904bb0d840cdc2f740cdccef883 (diff)
downloadQt-d4fcb7328efdd865ccc2db53ba428104073ed7ba.zip
Qt-d4fcb7328efdd865ccc2db53ba428104073ed7ba.tar.gz
Qt-d4fcb7328efdd865ccc2db53ba428104073ed7ba.tar.bz2
Fixes: Don't fill the pixmap because we will copy the cache into it.
RevBy: bnilsen AutoTest: All pass + plasma ok (cherry picked from commit 0985805ab3c7de5b15c115a98afb15944b6d93b9)
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 235362b..7c982fe 100644
--- a/src/gui/graphicsview/qgraphicsscene.cpp
+++ b/src/gui/graphicsview/qgraphicsscene.cpp
@@ -4755,11 +4755,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();
}