MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / itemChange

Method itemChange

SLiCAP/schematic/component_item.py:298–305  ·  view source on GitHub ↗
(self, change, value)

Source from the content-addressed store, hash-verified

296 self.setAcceptedMouseButtons(Qt.LeftButton)
297
298 def itemChange(self, change, value):
299 p = self.parentItem()
300 if p is not None:
301 if change == QGraphicsItem.ItemPositionChange:
302 p.prepareGeometryChange()
303 elif change == QGraphicsItem.ItemPositionHasChanged:
304 p.update()
305 return super().itemChange(change, value)
306
307 def mousePressEvent(self, event):
308 p = self.parentItem()

Callers

nothing calls this directly

Calls 1

itemChangeMethod · 0.45

Tested by

no test coverage detected