summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscene.cpp
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-08-03 07:55:33 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-08-03 08:02:05 (GMT)
commit2c277a362ff1961a4ffefe6f0787efbe40ebce1b (patch)
treec4985ebfef34a2b401af9e671963173fb4ebba25 /src/gui/graphicsview/qgraphicsscene.cpp
parentefdd45526ba5bcdaf2d6e95467347873a1f8c8aa (diff)
downloadQt-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.cpp2
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();