개정판 5a5c16e6
fixed an error that pipe properties not displayed on property window
DTI_PID/DTI_PID/Commands/DefaultCommand.py | ||
---|---|---|
81 | 81 |
self.onSuccess.emit(x, y, width, height) |
82 | 82 |
self.isClicked = False |
83 | 83 |
|
84 |
''' |
|
84 | 85 |
items = self.imageViewer.scene.selectedItems() |
85 | 86 |
if len(items) == 1: |
86 | 87 |
item = items[0] |
... | ... | |
90 | 91 |
else: |
91 | 92 |
self.imageViewer.mainWindow.resultPropertyTableWidget.setRowCount(0) |
92 | 93 |
pass |
94 |
''' |
|
93 | 95 |
elif self.isClicked and 'mouseMoveEvent' == param[0]: |
94 | 96 |
endX = scenePos.x() |
95 | 97 |
endY = scenePos.y() |
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
71 | 71 |
elif type(item) is QEngineeringNoteItem: |
72 | 72 |
noteContentsList = item.findNoteContents(item.text()) |
73 | 73 |
self.onNoteClicked(item.text(), noteContentsList) |
74 |
elif item is None: |
|
75 |
self.setRowCount(0) |
|
74 | 76 |
except Exception as ex: |
75 | 77 |
from App import App |
76 | 78 |
|
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
418 | 418 |
@history humkung 2018.07.08 call tree widget's findItem |
419 | 419 |
''' |
420 | 420 |
def onSelectionChanged(self): |
421 |
for item in self.graphicsView.scene.selectedItems(): |
|
421 |
items = [item for item in self.graphicsView.scene.selectedItems() if issubclass(type(item), SymbolSvgItem) or \ |
|
422 |
type(item) is QEngineeringLineItem or type(item) is QEngineeringLineNoTextItem or type(item) is QEngineeringNoteItem] |
|
423 |
if items: |
|
424 |
item = items[-1] |
|
422 | 425 |
self.resultTreeWidget.findItem(item) |
423 | 426 |
self.resultPropertyTableWidget.showItemProperty(item) |
427 |
else: |
|
428 |
self.resultPropertyTableWidget.showItemProperty(None) |
|
424 | 429 |
|
425 | 430 |
''' |
426 | 431 |
@brief Initialize scene and ResultTreeWidget |
내보내기 Unified diff