diff options
author | Bjoern Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-03-26 16:16:36 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-04-06 11:49:50 (GMT) |
commit | d85835580463f88df6a71d27d2577739e5366f68 (patch) | |
tree | 45fd640b1b6b6a913cb41749e59b3a2085c6f7eb /src/gui/graphicsview/qgraphicsitem.cpp | |
parent | 15098c5ec73db5de8ca724f744a1484f888ed271 (diff) | |
download | Qt-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.cpp | 2 |
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. |