MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / itemChange

Method itemChange

SLiCAP/schematic/command_item.py:24–27  ·  view source on GitHub ↗
(self, change, value)

Source from the content-addressed store, hash-verified

22 self.setTextInteractionFlags(Qt.NoTextInteraction)
23
24 def itemChange(self, change, value):
25 if change == QGraphicsItem.ItemPositionChange:
26 return snap(value)
27 return super().itemChange(change, value)
28
29 def mouseDoubleClickEvent(self, event):
30 self.setTextInteractionFlags(Qt.TextEditorInteraction)

Callers

nothing calls this directly

Calls 1

snapFunction · 0.85

Tested by

no test coverage detected