summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBjoern Erik Nilsen <bjorn.nilsen@nokia.com>2009-03-26 16:05:59 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-04-06 11:49:49 (GMT)
commit15098c5ec73db5de8ca724f744a1484f888ed271 (patch)
tree1d2d073d38a5357c927c9daab22562e94dbb30a6 /src
parent5564ef89f46fe96aa0b22b888a9a8ba053eea6c7 (diff)
downloadQt-15098c5ec73db5de8ca724f744a1484f888ed271.zip
Qt-15098c5ec73db5de8ca724f744a1484f888ed271.tar.gz
Qt-15098c5ec73db5de8ca724f744a1484f888ed271.tar.bz2
Fixes: Do not update children if not required.
AutoTest: Still pass
Diffstat (limited to 'src')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp3
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