프로젝트

일반

사용자정보

개정판 80c7547b

ID80c7547b81a5feb27f40f20d0f1bf3075aaf342e
상위 f7fbb5f3
하위 12bc797d

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

fix EvaluatedLabel

Change-Id: I3d4cdb80a2931e6c78bab64da9d725bada6d1d3b

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py
533 533

  
534 534
    def EvaluatedLabel(self, prop):
535 535
        """ return label symbol's attribute """
536
        from EngineeringInstrumentItem import QEngineeringInstrumentItem
536
        from SymbolSvgItem import SymbolSvgItem
537 537

  
538 538
        scene = self.scene()
539
        labels = [item for item in scene.items() if type(item) is QEngineeringInstrumentItem and (item.iType == 19 or item.iType == 29 or item.iType == 30)]
539
        labels = [item for item in scene.items() if issubclass(type(item), SymbolSvgItem) and (item.iType == 19 or item.iType == 29 or item.iType == 30)]
540 540
        if labels:
541 541
            label = [label for label in labels if label.EvaluatedAttribute('OWNERSYMBOL') == self]
542 542
            if label:

내보내기 Unified diff

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