프로젝트

일반

사용자정보

개정판 d5014865

IDd50148654924c6fe7d3391f5c80b07eac94ac40e
상위 820da2b5
하위 9f8375e7

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

issue #481: fix error item for new scene method

Change-Id: I02ff2c7ec5f49f22b15b510cd4719c85b7bab2bb

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
421 421
                errors = cmd.execute(self.graphicsView.scene().items())
422 422
                for error in errors:
423 423
                    error.transfer.onRemoved.connect(self.itemRemoved)
424
                    self.graphicsView.scene().addItem(error)
424
                    #self.graphicsView.scene().addItem(error)
425
                    error.addSvgItemToScene(self.graphicsView.scene())
425 426

  
426 427
                self.tableWidgetInconsistency.clearContents()
427 428
                self.tableWidgetInconsistency.setRowCount(len(errors))
DTI_PID/DTI_PID/Shapes/EngineeringErrorItem.py
32 32
    def setPosition(self, loc):
33 33
        rect = self.boundingRect()
34 34
        self.loc = loc
35
        self.setPos(loc[0] - rect.width(), loc[1] - rect.height())
35
        self.size = [0, 0]
36
        self.origin = loc
37
        self.symbolOrigin = [rect.width(), rect.height()]
38
        #self.setPos(loc[0] - rect.width(), loc[1] - rect.height())
36 39

  
37 40
    def mouseDoubleClickEvent(self, event):
38 41
        """ do not start rotating """
39 42
        pass
40 43

  
41
    def keyPressEvent(self, event):
42
        pass
44
    #def keyPressEvent(self, event):
45
    #    pass
43 46

  
44 47
    def toXml(self):
45 48
        # do not save

내보내기 Unified diff