프로젝트

일반

사용자정보

개정판 57742fb4

ID57742fb4f701e0014f9ffc84c3c0e3e64248de6f
상위 dcccf4dd
하위 847103bb

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

issue #000: arrange code

Change-Id: I1ed302f2f7a79bf638d173ec87c3ba27186e93ba

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py
198 198
        @date   2018.07.08
199 199
    '''
200 200
    def paint(self, painter, options=None, widget=None):
201
        from EngineeringLineNoTextItem import QEngineeringLineNoTextItem
202 201
        self.setColor(self.getColor())
203 202

  
204 203
        if self.angle == 1.57 or self.angle == 4.71:
......
213 212
        painter.drawText(rect, Qt.AlignCenter, self.text())
214 213

  
215 214
        if self.isSelected():
215
            from EngineeringLineNoTextItem import QEngineeringLineNoTextItem
216 216
            self.drawFocusRect(painter)
217

  
218
        if type(self) is QEngineeringLineNoTextItem and self.isSelected():
219
            for run in self.runs:
220
                for item in run.items:
221
                    item.setSelected(True)
222
        #elif type(self) is QEngineeringLineNoTextItem:
223
        #    for run in self.runs:
224
        #        for item in run.items:
225
        #            item.setSelected(False)
217
            if type(self) is QEngineeringLineNoTextItem:
218
                for run in self.runs:
219
                    for item in run.items:
220
                        item.setSelected(True)
226 221

  
227 222
    '''
228 223
        @brief      Delete text item

내보내기 Unified diff

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