mirror of
https://github.com/wassname/sloth.git
synced 2026-10-02 12:40:07 +08:00
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:
1 parent
99822b85d6
commit
01ea5edcad
1 file changed
+2
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user