diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-03 07:55:33 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-03 08:02:05 (GMT) |
commit | 2c277a362ff1961a4ffefe6f0787efbe40ebce1b (patch) | |
tree | c4985ebfef34a2b401af9e671963173fb4ebba25 /src/gui/graphicsview/qgraphicsscene.cpp | |
parent | efdd45526ba5bcdaf2d6e95467347873a1f8c8aa (diff) | |
download | Qt-2c277a362ff1961a4ffefe6f0787efbe40ebce1b.zip Qt-2c277a362ff1961a4ffefe6f0787efbe40ebce1b.tar.gz Qt-2c277a362ff1961a4ffefe6f0787efbe40ebce1b.tar.bz2 |
QGraphicsItem leave traces when removing graphics effect.
We have to update the view directly when removing an effect; otherwise
we have no information about the effective bounding rect and only the
item's bounding rect will be updated.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 5cd0ab2..b4674a5 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -4324,7 +4324,7 @@ void QGraphicsScenePrivate::drawSubtreeRecursive(QGraphicsItem *item, QPainter * const bool itemClipsChildrenToShape = (item->d_ptr->flags & QGraphicsItem::ItemClipsChildrenToShape); bool drawItem = itemHasContents && !itemIsFullyTransparent; if (drawItem) { - const QRectF brect = adjustedItemBoundingRect(item); + const QRectF brect = adjustedItemEffectiveBoundingRect(item); ENSURE_TRANSFORM_PTR QRect viewBoundingRect = translateOnlyTransform ? brect.translated(transformPtr->dx(), transformPtr->dy()).toRect() : transformPtr->mapRect(brect).toRect(); |