개정판 1d2655d1
resize text to size text
Change-Id: Ic2e1c5a208a30e41b2c1ecb1eb46fa6a5a21fd3d
DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py | ||
---|---|---|
290 | 290 |
menu.exec_(event.screenPos()) |
291 | 291 |
|
292 | 292 |
def contextResizeText(self): |
293 |
textItems = [item for item in self.scene().selectedItems() if item is not self and type(item) is QEngineeringTextItem] |
|
293 |
from QEngineeringTrimLineNoTextItem import QEngineeringLineNoTextItem |
|
294 |
|
|
295 |
textItems = [item for item in self.scene().selectedItems() if item is not self and issubclass(type(item), QEngineeringTextItem) and type(item) is not QEngineeringLineNoTextItem] |
|
294 | 296 |
allowed_error = 0.01 |
295 | 297 |
|
296 | 298 |
for text in textItems: |
내보내기 Unified diff