개정판 09bfa6a4
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