프로젝트

일반

사용자정보

개정판 e75b5c63

IDe75b5c63a4f89714f64cc94c8582cd1f522b9236
상위 b31800e5
하위 2aae48b5

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

reducer validate

Change-Id: I0889367840a11222b56dc0665ab3e16b25331915

차이점 보기:

DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
195 195
        from EngineeringTextItem import QEngineeringTextItem
196 196
        from EngineeringEquipmentItem import QEngineeringEquipmentItem
197 197
        from EngineeringEndBreakItem import QEngineeringEndBreakItem
198
        from EngineeringReducerItem import QEngineeringReducerItem
199
        from QEngineeringSizeTextItem import QEngineeringSizeTextItem
198 200
        errors = []
199 201

  
200 202
        try:
......
294 296
                    error.name = 'Error'
295 297
                    errors.append(error)
296 298

  
299
            if type(self) is QEngineeringReducerItem:
300
                if not [size for size in self.associations() if type(size) is QEngineeringSizeTextItem]:
301
                    error = SymbolSvgItem.createItem('Error', None, dataPath)
302
                    error.parent = self
303
                    error.msg = self.tr('No size label error')
304
                    error.setToolTip(error.msg)
305
                    error.area = self.area
306
                    error.name = 'Error'
307
                    errors.append(error)
308

  
297 309
            if self.iType == 34 or self.iType == 17 or self.iType == 22:
298 310
                if not self.EvaluatedLabel('OWNERSYMBOL'):
299 311
                    error = SymbolSvgItem.createItem('Error', None, dataPath)

내보내기 Unified diff

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