프로젝트

일반

사용자정보

개정판 0b12778f

ID0b12778fadbfe16e7ff22290e9d3586c1dafca46
상위 3a360d0e
하위 879d06e1

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

line arrow update

Change-Id: Idd160f8289ced8de07197653b32dacc88b1d92b2

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py
2021 2021
        else:
2022 2022
            self._arrow.setPolygon(polygon)
2023 2023

  
2024
        if self.flowMark:
2024
        isFreezed = False
2025
        for prop, value in self.properties.items():
2026
            if prop.Attribute == 'Freeze':
2027
                if value and str(value) == 'True':
2028
                    isFreezed = True
2029
                break
2030
        
2031
        if isFreezed:
2032
            self._arrow.setFlag(QGraphicsItem.ItemStacksBehindParent, False)
2033
            self._arrow.setBrush(Qt.green)
2034
        elif self.flowMark:
2035
            self._arrow.setFlag(QGraphicsItem.ItemStacksBehindParent, True)
2025 2036
            self._arrow.setBrush(Qt.red)
2026 2037
        else:
2038
            self._arrow.setFlag(QGraphicsItem.ItemStacksBehindParent, True)
2027 2039
            self._arrow.setBrush(Qt.blue)
2028 2040
        self._arrow.update()
2029 2041

  
......
2173 2185
                for prop, value in line.properties.items():
2174 2186
                    if prop.Attribute == 'Freeze':
2175 2187
                        line.set_property(prop.Attribute, not isFreezed)
2188
                line.update_arrow()
2176 2189

  
2177 2190
            App.mainWnd().resultPropertyTableWidget.onSuccessSelectAttribute(self)
2178 2191

  

내보내기 Unified diff

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