프로젝트

일반

사용자정보

개정판 09bfa6a4

ID09bfa6a47d6bf17ea528d83de7378b8b26b452a5
상위 b6eabeb4
하위 128bedc4

함의성이(가) 8달 전에 추가함

fix

Change-Id: I60a9af0c195d71c3f16a4f589d753483a4a44f08

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py
324 324
        for index in range(startIndex, endIndex):
325 325
            newTexts.append(commonText + chr(index))
326 326

  
327
        index = 0
328
        for _text in newTexts:
329
            textInfo = TextInfo(_text, self.loc[0] + self.size[0] * index, self.loc[1], self.size[0], self.size[1], self.angle)
330
            item = QEngineeringTextItem.create_text_with(self.scene(), textInfo)
331
            if item is not None:
332
                item.area = self.area
333
                item.transfer.onRemoved.connect(self.transfer.onRemoved)
334
                index = index + 1
335

  
336
        self.transfer.onRemoved.emit(self)
327
        if 1 < len(newTexts) < 30:
328
            index = 0
329
            for _text in newTexts:
330
                textInfo = TextInfo(_text, self.loc[0] + self.size[0] * index, self.loc[1], self.size[0], self.size[1], self.angle)
331
                item = QEngineeringTextItem.create_text_with(self.scene(), textInfo)
332
                if item is not None:
333
                    item.area = self.area
334
                    item.transfer.onRemoved.connect(self.transfer.onRemoved)
335
                    index = index + 1
336

  
337
            self.transfer.onRemoved.emit(self)
337 338

  
338 339
    def contextSelectAll(self):
339 340
        from QEngineeringSizeTextItem import QEngineeringSizeTextItem

내보내기 Unified diff

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