프로젝트

일반

사용자정보

개정판 2e71e478

ID2e71e4785ee7994f9c0c532fa4b50c8bea2d2b5f
상위 3d2440f0
하위 47a1ff61, 59384c70

김정우 이(가) 약 7년 전에 추가함

기존 Scene에 추가된 TextItem 삭제 시 크기 비교 조건 삭제

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
747 747
        @author     Jeongwoo
748 748
        @date       2018.05.25
749 749
        @history    2018.05.29  Jeongwoo    Moved from QRecognitionDialog
750
                    2018.06.05  Jeongwoo    Remove Size condition
750 751
    '''
751 752
    def addTextItemToScene(self, textItem):
752 753
        textRect = textItem.boundingRectOnScene()
......
755 756
            for item in items:
756 757
                if issubclass(type(item), QEngineeringTextItem):
757 758
                    itemRect = item.boundingRectOnScene()
758
                    if itemRect.topLeft() == textRect.topLeft() and itemRect.size() == textRect.size() and item.text() == textItem.text(): # Equal
759
                    if itemRect.topLeft() == textRect.topLeft() and item.text() == textItem.text(): # Equal
759 760
                        item.deleteTextItemFromScene()
760 761
        textItem.addTextItemToScene(self.graphicsView.scene)
761 762
        

내보내기 Unified diff