개정판 c3fff180
issue #000: change line type at once
Change-Id: I44c87d6cb67d6629d9c6607c51ae09c90dd0ce9c
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
378 | 378 |
lineType = self._lineTypeComboBox.itemText(param) |
379 | 379 |
data = self._lineTypeComboBox.tag.data(Qt.UserRole) |
380 | 380 |
if type(data) is QEngineeringLineItem: |
381 |
data.lineType = lineType |
|
381 |
self.changeConnectedLineType(data, lineType) |
|
382 |
|
|
383 |
def changeConnectedLineType(self, line, lineType): |
|
384 |
line.lineType = lineType |
|
385 |
if type(line.connectors[0].connectedItem) is QEngineeringLineItem and line.connectors[0].connectedItem.lineType is not lineType: |
|
386 |
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: |
|
388 |
self.changeConnectedLineType(line.connectors[1].connectedItem, lineType) |
|
382 | 389 |
|
383 | 390 |
def show_icon_item(self, row, col, prop): |
384 | 391 |
""" show icon item on grid """ |
DTI_PID/DTI_PID/TextItemEditDialog.py | ||
---|---|---|
119 | 119 |
if text == replace: |
120 | 120 |
return |
121 | 121 |
item.setPlainText(item.text().replace(text, replace)) |
122 |
print(item.text()) |
|
122 |
#print(item.text())
|
|
123 | 123 |
|
124 | 124 |
''' |
125 | 125 |
@brief key press event |
내보내기 Unified diff