diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2009-12-04 14:57:18 (GMT) |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2009-12-04 14:57:18 (GMT) |
commit | 39392326c8c843a6f46b864c6595a5241a47af10 (patch) | |
tree | e89b63d383fc130702c47323d9cd55c86348c880 /src/gui | |
parent | 9a76f02a3147c2da969cb1b942ee7228b13c84cc (diff) | |
download | Qt-39392326c8c843a6f46b864c6595a5241a47af10.zip Qt-39392326c8c843a6f46b864c6595a5241a47af10.tar.gz Qt-39392326c8c843a6f46b864c6595a5241a47af10.tar.bz2 |
Fixes clipping bug in the embedded dialogs demo.
The problem was that when using DeviceCoordinateCache for items in a scene, newly exposed areas were wrongly painted over the Pixmap in the cache, instead of blending into it.
Autotest included.
Task-number: QTBUG-657
Reviewed-by: Andreas
Reviewed-by: bnilsen
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 8777cdc..27ebb79 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -4233,7 +4233,6 @@ static void _q_paintIntoCache(QPixmap *pix, QGraphicsItem *item, const QRegion & if (!subPix.isNull()) { // Blit the subpixmap into the main pixmap. pixmapPainter.begin(pix); - pixmapPainter.setCompositionMode(QPainter::CompositionMode_Source); pixmapPainter.setClipRegion(pixmapExposed); pixmapPainter.drawPixmap(br.topLeft(), subPix); pixmapPainter.end(); |