프로젝트

일반

사용자정보

개정판 847103bb

ID847103bb84e40bf828442722c8dafa700837c46c
상위 57742fb4
하위 e724edb2

함의성이(가) 5년 이상 전에 추가함

issue #000: fix line no highlight

Change-Id: Ia6a5c07a94125e98c430807de16c0b7b18e447c4

차이점 보기:

DTI_PID/DTI_PID/Commands/HighlightCommand.py
27 27
        from EngineeringRunItem import QEngineeringRunItem
28 28
        from SymbolSvgItem import SymbolSvgItem
29 29
        from EngineeringNoteItem import QEngineeringNoteItem
30
        from EngineeringLineNoTextItem import QEngineeringLineNoTextItem
30 31

  
31 32
        self.isTreated = False
32 33
        
......
73 74

  
74 75
                param.setSelected(True)
75 76
                param.update()
77
                
78
                if type(param) is QEngineeringLineNoTextItem:
79
                    for run in param.runs:
80
                        for item in run.items:
81
                            item.setSelected(True)
82
                            item.update()
76 83

  
77 84
    def undo(self):
78 85
        pass
DTI_PID/DTI_PID/ItemTreeWidget.py
581 581
                #self.imageViewer.zoomImage(True, QMouseEvent(QEvent.MouseButtonPress, self.imageViewer.mapFromScene(QPointF(rect.left(), rect.top())), Qt.LeftButton, Qt.LeftButton, Qt.NoModifier), 3)
582 582

  
583 583
                self.singleClicked.emit(itemData)
584
            elif (type(itemData) is QEngineeringLineNoTextItem) or (type(itemData) is QEngineeringRunItem):
584
            elif type(itemData) is QEngineeringRunItem:
585 585
                HighlightCommand(self.imageViewer).execute(itemData)
586 586
                self.lineNoSingleClicked.emit(itemData)
587 587
                for child in range(item.childCount()):
588 588
                    item.child(child).setSelected(True)
589
            elif type(itemData) is QEngineeringLineNoTextItem:
590
                HighlightCommand(self.imageViewer).execute(itemData)
591
                self.lineNoSingleClicked.emit(itemData)
592
                itemData.setSelected(True)
593
                #for child in range(item.childCount()):
594
                #    for cchild in range(item.child(child).childCount()):
595
                #        item.child(child).child(cchild).setSelected(True)
589 596
            elif type(itemData) is list and type(itemData[0]) is QEngineeringNoteItem:
590 597
                HighlightCommand(self.imageViewer).execute(itemData)
591 598
                '''
DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py
210 210
        #color = QColor('#151485')
211 211
        painter.setPen(QPen(color))
212 212
        painter.drawText(rect, Qt.AlignCenter, self.text())
213

  
213
        
214 214
        if self.isSelected():
215
            from EngineeringLineNoTextItem import QEngineeringLineNoTextItem
215
            #from EngineeringLineNoTextItem import QEngineeringLineNoTextItem
216 216
            self.drawFocusRect(painter)
217
            if type(self) is QEngineeringLineNoTextItem:
218
                for run in self.runs:
219
                    for item in run.items:
220
                        item.setSelected(True)
217
            #if type(self) is QEngineeringLineNoTextItem:
218
                #for run in self.runs:
219
                    #for item in run.items:
220
                        #item.setSelected(True)
221

  
222
        
221 223

  
222 224
    '''
223 225
        @brief      Delete text item

내보내기 Unified diff

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