개정판 94c1d594
issue #000: fix line no selection, child symbol
Change-Id: I44a219b891b30d18dd13425472e92a031478dd4d
DTI_PID/DTI_PID/ItemTreeWidget.py | ||
---|---|---|
758 | 758 |
self.setCurrentItem(fItem) |
759 | 759 |
return |
760 | 760 |
elif type(item) is QEngineeringLineNoTextItem: |
761 |
foundItems = self.findItems(item.text(), Qt.MatchExactly | Qt.MatchRecursive, 0) |
|
761 |
foundItems = self.findItems(item.text().replace('\n', ''), Qt.MatchExactly | Qt.MatchRecursive, 0)
|
|
762 | 762 |
if foundItems is not None: |
763 | 763 |
for fItem in foundItems: |
764 | 764 |
data = fItem.data(0, self.TREE_DATA_ROLE) |
DTI_PID/DTI_PID/SymbolEditorDialog.py | ||
---|---|---|
1062 | 1062 |
def addAdditionalSymbol(self, parent_index, direction, symbolName): |
1063 | 1063 |
text = "{},{},{}".format(parent_index, direction, symbolName) |
1064 | 1064 |
|
1065 |
if self.isAlreadyAdded(text): |
|
1065 |
if False:#self.isAlreadyAdded(text):
|
|
1066 | 1066 |
QMessageBox.about(self.ui.buttonBox, self.tr('Notice'), self.tr('Already add item')) |
1067 | 1067 |
else: |
1068 | 1068 |
self.ui.additionalSymbolListWidget.addItem(text) |
내보내기 Unified diff