Ensure child items are updated even if the parent item has no content
authorAndy Shaw <andy.shaw@digia.com>
Tue, 14 Aug 2012 06:52:08 +0000 (08:52 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Aug 2012 14:53:00 +0000 (16:53 +0200)
commit49c251e0543ea80e69d1725bb08bb4dfe3f225ab
tree51795737361ea372f10a1d483bf9cf49b80ff5e8
parent48955161b47b1dbcb97a906a726dae9cc6d78c06
Ensure child items are updated even if the parent item has no content

When a parent item had its visiblity toggled, then the child item would
not update if the parent item had ItemHasNoContents and
ItemClipsChildrenToShape set. This is a common use case in declarative as
the root item has ItemHasNoContents set.

Task-number: QTBUG-26846

Change-Id: Id6592ebc4ba2caa4331a4a71f7247e40993131b6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/widgets/graphicsview/qgraphicsitem.cpp
tests/manual/manual.pro
tests/manual/qgraphicsitem/main.cpp [new file with mode: 0644]
tests/manual/qgraphicsitem/qgraphicsitem.pro [new file with mode: 0644]