MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / mouseMoveEvent

Method mouseMoveEvent

src/core/node.py:137–149  ·  view source on GitHub ↗
(self, event: QMouseEvent)

Source from the content-addressed store, hash-verified

135 super().mousePressEvent(event)
136
137 def mouseMoveEvent(self, event: QMouseEvent):
138 if self._is_resizing:
139 self.prepareGeometryChange()
140 min_height = self._calculate_minimum_height()
141
142 self.width = max(self.base_width, event.pos().x())
143 self.height = max(min_height, event.pos().y())
144
145 self._update_layout()
146 for pin in self.pins:
147 pin.update_connections()
148 else:
149 super().mouseMoveEvent(event)
150
151 def mouseReleaseEvent(self, event: QMouseEvent):
152 if self._is_resizing:

Callers

nothing calls this directly

Calls 3

_update_layoutMethod · 0.95
update_connectionsMethod · 0.80

Tested by

no test coverage detected