diff options
author | Bjoern Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-03-26 16:05:59 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-04-06 11:49:49 (GMT) |
commit | 15098c5ec73db5de8ca724f744a1484f888ed271 (patch) | |
tree | 1d2d073d38a5357c927c9daab22562e94dbb30a6 | |
parent | 5564ef89f46fe96aa0b22b888a9a8ba053eea6c7 (diff) | |
download | Qt-15098c5ec73db5de8ca724f744a1484f888ed271.zip Qt-15098c5ec73db5de8ca724f744a1484f888ed271.tar.gz Qt-15098c5ec73db5de8ca724f744a1484f888ed271.tar.bz2 |
Fixes: Do not update children if not required.
AutoTest: Still pass
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp index c691206..b4f36de 100644 --- a/src/gui/graphicsview/qgraphicsitem.cpp +++ b/src/gui/graphicsview/qgraphicsitem.cpp @@ -1583,9 +1583,10 @@ void QGraphicsItemPrivate::setVisibleHelper(bool newVisible, bool explicitly, bo } // Update children with explicitly = false. + const bool updateChildren = update && !(flags & QGraphicsItem::ItemClipsChildrenToShape); foreach (QGraphicsItem *child, children) { if (!newVisible || !child->d_ptr->explicitlyHidden) - child->d_ptr->setVisibleHelper(newVisible, false); + child->d_ptr->setVisibleHelper(newVisible, false, updateChildren); } // Enable subfocus |