개정판 0e283dcf
issue #486: fix
Change-Id: I4e2652aaceaad614f47740b11be18bcce9071cde
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1588 | 1588 |
selected = [item for item in self.graphicsView.scene.items(QPointF(pt[0], pt[1])) if |
1589 | 1589 |
(type(item) is QEngineeringConnectorItem and item.parent is not items[-1]) or type(item) is QEngineeringLineItem] |
1590 | 1590 |
if selected: |
1591 |
if selected: |
|
1592 |
if type(selected[0]) is QEngineeringConnectorItem: |
|
1593 |
items[-1].connect_if_possible(selected[0].parent, 5) |
|
1594 |
else: |
|
1595 |
detector.connectLineToLine(selected[0], items[-1], 5) |
|
1591 |
if type(selected[0]) is QEngineeringConnectorItem: |
|
1592 |
items[-1].connect_if_possible(selected[0].parent, 5) |
|
1593 |
else: |
|
1594 |
detector.connectLineToLine(selected[0], items[-1], 5) |
|
1596 | 1595 |
|
1597 | 1596 |
finally: |
1598 | 1597 |
self.graphicsView.scene.removeItem(self.actionLine.tag._polyline) |
내보내기 Unified diff