GroupItem may not be selected or focused

Only its children can be.  This fixes the problem, that a group item
could even be selected by clicking somewhere between the item's children
and the upper left corner of the scene (because the group items bounding
rect extends all the way up to (0,0))
This commit is contained in:
Martin Baeuml
2011-12-06 16:51:38 +01:00
parent 99822b85d6
commit 01ea5edcad
+2
View File
@@ -416,6 +416,8 @@ class GroupItem(BaseItem):
self._children = []
BaseItem.__init__(self, model_item, prefix, parent)
self.setFlag(QGraphicsItem.ItemIsMovable, False)
self.setFlag(QGraphicsItem.ItemIsSelectable, False)
self.setFlag(QGraphicsItem.ItemIsFocusable, False)
self.createChildren()