프로젝트

일반

사용자정보

개정판 5a5c16e6

ID5a5c16e6ebe2e7b9bfab3f1120b2810af38cc05f
상위 b91c4f9b
하위 4efdc42f

humkyung 이(가) 6년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)