summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsitem.cpp
diff options
context:
space:
mode:
authorBjoern Erik Nilsen <bjorn.nilsen@nokia.com>2009-03-26 16:16:36 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-04-06 11:49:50 (GMT)
commitd85835580463f88df6a71d27d2577739e5366f68 (patch)
tree45fd640b1b6b6a913cb41749e59b3a2085c6f7eb /src/gui/graphicsview/qgraphicsitem.cpp
parent15098c5ec73db5de8ca724f744a1484f888ed271 (diff)
downloadQt-d85835580463f88df6a71d27d2577739e5366f68.zip
Qt-d85835580463f88df6a71d27d2577739e5366f68.tar.gz
Qt-d85835580463f88df6a71d27d2577739e5366f68.tar.bz2
Fixes: Don't bother updating hidden items.
AutoTest: Still pass
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 b4f36de..327b352 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -3652,7 +3652,7 @@ void QGraphicsItemPrivate::updateHelper(const QRectF &rect, bool force, bool may
*/
void QGraphicsItemPrivate::fullUpdateHelper(bool childrenOnly, bool maybeDirtyClipPath)
{
- if (!maybeDirtyClipPath && discardUpdateRequest())
+ if (!visible || (!maybeDirtyClipPath && discardUpdateRequest()))
return;
// 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.