개정판 581492ef
line move fix
Change-Id: I21981cc0fb7ab0e219a1671da1eb8ccdeac389b4
DTI_PID/DTI_PID/Shapes/EngineeringConnectorItem.py | ||
---|---|---|
360 | 360 |
|
361 | 361 |
self.connect(items[0].parent) |
362 | 362 |
items[0].connect(self.parent) |
363 |
elif items[0]._connected_at == QEngineeringAbstractItem.CONNECTED_AT_BODY: |
|
364 |
if self.connectedItem is not None: |
|
365 |
for connect in self.connectedItem.connectors: |
|
366 |
if connect.connectedItem == self.parent: |
|
367 |
connect.connect(None) |
|
368 |
|
|
369 |
self.connect(items[0].parent) |
|
370 |
items[0].connect(self.parent) |
|
363 | 371 |
else: |
364 | 372 |
pt = [event.scenePos().x(), event.scenePos().y()] |
365 | 373 |
if drawing_mode == QEngineeringPolylineItem.AXIS_MODE: |
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
1518 | 1518 |
if self.includes(item.connectors[index], margin=100): |
1519 | 1519 |
item.connectors[index].connect(self) |
1520 | 1520 |
|
1521 |
elif issubclass(type(item), QEngineeringNozzleItem) and item.has_connection: |
|
1521 |
elif lissubclass(type(item), QEngineeringNozzleItem) and item.has_connection:
|
|
1522 | 1522 |
for index in range(len(item.connectors)): |
1523 | 1523 |
if item.connectors[index].connectedItem or not QEngineeringLineItem.check_piping(item.conn_type[index], True): |
1524 | 1524 |
continue |
내보내기 Unified diff