개정판 0c8812bd
issue #000: fix inconsistency table and item table
Change-Id: I683526f3321de927394453c4f547fa2a4c23eb09
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
713 | 713 |
if event.key() == Qt.Key_Delete: |
714 | 714 |
items = self.mainWindow.graphicsView.scene.selectedItems() |
715 | 715 |
selectedIndexes = self.selectedIndexes() |
716 |
if selectedIndexes[0].column() == 3 and self.item(selectedIndexes[0].row(), 0).text() == 'OWNER':
|
|
716 |
if selectedIndexes[0].column() == 3 and self.item(selectedIndexes[0].row(), 1).text() == 'OWNER':
|
|
717 | 717 |
items[0].owner = None |
718 | 718 |
self.show_item_property(items[0]) |
719 | 719 |
elif len(items) == 1 and len(selectedIndexes) == 1 and type(items[0]) is not QEngineeringLineItem and type(items[0]) is not QEngineeringSpecBreakItem and self.item(selectedIndexes[0].row(), 0).text().find('CONN') is not 0: |
720 | 720 |
if selectedIndexes[0].column() == 3: |
721 |
attributeStr = self.item(selectedIndexes[0].row(), 0).text()
|
|
721 |
attributeStr = self.item(selectedIndexes[0].row(), 1).text()
|
|
722 | 722 |
items[0].removeSelfAttr(attributeStr) |
723 | 723 |
self.mainWindow.refreshResultPropertyTableWidget() |
724 | 724 |
elif len(items) == 1 and len(selectedIndexes) == 1 and (type(items[0]) is QEngineeringLineItem or issubclass(type(items[0]), SymbolSvgItem)): |
... | ... | |
735 | 735 |
if sceneConnector.connectedItem is not None and items[0].uid == sceneConnector.connectedItem.uid: |
736 | 736 |
sceneConnector.connectedItem = None |
737 | 737 |
elif len(items) == 1 and len(selectedIndexes) == 1 and type(items[0]) is QEngineeringSpecBreakItem: |
738 |
keyCell = self.item(selectedIndexes[0].row(), 0)
|
|
738 |
keyCell = self.item(selectedIndexes[0].row(), 1)
|
|
739 | 739 |
if selectedIndexes[0].column() == 3 and (keyCell.text() == 'UpStream' or keyCell.text() == 'DownStream'): |
740 | 740 |
for attr in items[0].attrs.keys(): |
741 | 741 |
if attr.Attribute == keyCell.text(): |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
305 | 305 |
HighlightCommand(self.graphicsView).execute(errorItem) |
306 | 306 |
except Exception as ex: |
307 | 307 |
pass |
308 |
finally: |
|
309 |
return QTableView.keyPressEvent(self.tableWidgetInconsistency, event) |
|
308 |
#finally:
|
|
309 |
# return QTableView.keyPressEvent(self.tableWidgetInconsistency, event)
|
|
310 | 310 |
|
311 | 311 |
def onValidation(self): |
312 | 312 |
""" |
DTI_PID/DTI_PID/Shapes/EngineeringLineNoTextItem.py | ||
---|---|---|
363 | 363 |
return None |
364 | 364 |
|
365 | 365 |
return node |
366 |
|
|
366 |
|
|
367 | 367 |
def end_break(self): |
368 | 368 |
''' |
369 | 369 |
@brief end break check |
370 | 370 |
@author euisung |
371 | 371 |
@date 2019.05.07 |
372 | 372 |
@history 2019.05.19 euisung can cover at both end that contact other line's middle |
373 |
2019.05.19 euisung no more used integrated with linetracer |
|
373 | 374 |
''' |
374 | 375 |
from EngineeringLineItem import QEngineeringLineItem |
375 | 376 |
from SymbolSvgItem import SymbolSvgItem |
내보내기 Unified diff