개정판 ccd0db87
issue #000: fix line type change at once
Change-Id: I315e4fba48404a17f256edcb845d7b31646cd908
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
382 | 382 |
|
383 | 383 |
def changeConnectedLineType(self, line, lineType): |
384 | 384 |
line.lineType = lineType |
385 |
if type(line.connectors[0].connectedItem) is QEngineeringLineItem and line.connectors[0].connectedItem.lineType is not lineType: |
|
385 |
if type(line.connectors[0].connectedItem) is QEngineeringLineItem and \ |
|
386 |
(line.connectors[0].connectedItem.connectors[0].connectedItem is line or line.connectors[0].connectedItem.connectors[1].connectedItem is line) and \ |
|
387 |
line.connectors[0].connectedItem.lineType is not lineType: |
|
386 | 388 |
self.changeConnectedLineType(line.connectors[0].connectedItem, lineType) |
387 |
if type(line.connectors[1].connectedItem) is QEngineeringLineItem and line.connectors[1].connectedItem.lineType is not lineType: |
|
389 |
if type(line.connectors[1].connectedItem) is QEngineeringLineItem and \ |
|
390 |
(line.connectors[1].connectedItem.connectors[0].connectedItem is line or line.connectors[1].connectedItem.connectors[1].connectedItem is line) and \ |
|
391 |
line.connectors[1].connectedItem.lineType is not lineType: |
|
388 | 392 |
self.changeConnectedLineType(line.connectors[1].connectedItem, lineType) |
389 | 393 |
|
390 | 394 |
def show_icon_item(self, row, col, prop): |
내보내기 Unified diff