diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-08 15:33:11 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:43:39 (GMT) |
commit | 8a5a52e95a8ec81ce4bc3bb0599cfab510c8400a (patch) | |
tree | 071eea822780a7b80f5ce0604d5867bbe2ffef96 /src/gui/graphicsview | |
parent | c07239ac97dfce35a6b277c82ec5445e01eb2249 (diff) | |
download | Qt-8a5a52e95a8ec81ce4bc3bb0599cfab510c8400a.zip Qt-8a5a52e95a8ec81ce4bc3bb0599cfab510c8400a.tar.gz Qt-8a5a52e95a8ec81ce4bc3bb0599cfab510c8400a.tar.bz2 |
Auto-test to ensure moved items don't leave traces.
See also: 1c9032f29d4500b33622d7510b6361c99d9af296
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 54fead1..7038c3d 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -5156,8 +5156,9 @@ void QGraphicsScenePrivate::drawSubtreeRecursive(QGraphicsItem *item, QPainter * QRectF brect = item->boundingRect(); // ### This does not take the clip into account. _q_adjustRect(&brect); - viewBoundingRect = transformTmp.mapRect(brect).toRect().adjusted(-1, -1, 1, 1); + viewBoundingRect = transformTmp.mapRect(brect).toRect(); item->d_ptr->paintedViewBoundingRects.insert(widget, viewBoundingRect); + viewBoundingRect.adjust(-1, -1, 1, 1); if (exposedRegion) viewBoundingRect &= exposedRegion->boundingRect(); } |