개정판 17c1a084
issue #000: fix line in recognition
Change-Id: Iefd45b86172354e39172cbed6d1c1b4eddb2956c
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
372 | 372 |
|
373 | 373 |
def itemChange(self, change, value): |
374 | 374 |
""" call signals when item's position or rotation is changed """ |
375 |
if not self.scene(): return super().itemChange(change, value) |
|
376 |
|
|
375 | 377 |
if change == QGraphicsItem.ItemPositionChange or change == QGraphicsItem.ItemRotationChange: |
376 | 378 |
for conn in self.connectors: |
377 | 379 |
conn.sceneConnectPoint = (conn.sceneBoundingRect().center().x(), conn.sceneBoundingRect().center().y()) |
내보내기 Unified diff