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

Method itemChange

SLiCAP/schematic/free_text_item.py:26–29  ·  view source on GitHub ↗
(self, change, value)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

snapFunction · 0.85

Tested by

no test coverage detected