111 def itemChange(self, change, value): |
111 def itemChange(self, change, value): |
112 """ |
112 """ |
113 Protected method called when an items state changes. |
113 Protected method called when an items state changes. |
114 |
114 |
115 @param change the item's change (QGraphicsItem.GraphicsItemChange) |
115 @param change the item's change (QGraphicsItem.GraphicsItemChange) |
116 @param value the value of the change (QVariant) |
116 @param value the value of the change |
117 @return adjusted values (QVariant) |
117 @return adjusted values |
118 """ |
118 """ |
119 if change == QGraphicsItem.ItemPositionChange: |
119 if change == QGraphicsItem.ItemPositionChange: |
120 self.shouldAdjustAssociations = True |
120 self.shouldAdjustAssociations = True |
121 return QGraphicsItem.itemChange(self, change, value) |
121 return QGraphicsItem.itemChange(self, change, value) |
122 |
122 |