summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsitem.cpp
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-05-28 18:16:20 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-09 07:29:21 (GMT)
commit32c09e7a36ecd41e8beb2a1f947944502793fd84 (patch)
tree147a547cdeff21d075231ac853132403e02ac152 /src/gui/graphicsview/qgraphicsitem.cpp
parentaba52a08d8868682e576d1b53d423cedb0a9134e (diff)
downloadQt-32c09e7a36ecd41e8beb2a1f947944502793fd84.zip
Qt-32c09e7a36ecd41e8beb2a1f947944502793fd84.tar.gz
Qt-32c09e7a36ecd41e8beb2a1f947944502793fd84.tar.bz2
More re-factoring of Graphics View's update mechanism.
This time with a recursive approach of processing dirty items. I've kept the previous approach using a dirty list, but the recursive one is now the default. Use QT_GV_USE_DIRTY_LIST=1 to swap. I've also cached the item's device transform in both cases so that we can re-use it later when drawing the item.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index 12aaba5..c3744b2 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -3769,7 +3769,7 @@ bool QGraphicsItemPrivate::discardUpdateRequest(bool ignoreClipping, bool ignore
// No scene, or if the scene is updating everything, means we have nothing
// to do. The only exception is if the scene tracks the growing scene rect.
return (!visible && !ignoreVisibleBit)
- || (!ignoreDirtyBit && (dirty || hasDirtyAncestor()))
+ || (!ignoreDirtyBit && dirty)
|| !scene
|| (scene->d_func()->updateAll && scene->d_func()->hasSceneRect)
|| (!ignoreClipping && (childrenClippedToShape() && isClippedAway()))