개정판 c560a0e1
fix text move
Change-Id: Ib45d6b09aedebea0448f9d2f4534f1f9211d7c2c
DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py | ||
---|---|---|
464 | 464 |
trans = QTransform() |
465 | 465 |
trans.rotateRadians(self.angle) |
466 | 466 |
dx, dy = trans.map(_dx, _dy) |
467 |
if dx: |
|
468 |
if dx > 0: |
|
467 |
if _dx:
|
|
468 |
if _dx > 0:
|
|
469 | 469 |
self.loc[0] = self.loc[0] + delta |
470 | 470 |
else: |
471 | 471 |
self.loc[0] = self.loc[0] - delta |
472 |
else:
|
|
473 |
if dy > 0: |
|
472 |
elif _dy:
|
|
473 |
if _dy > 0:
|
|
474 | 474 |
self.loc[1] = self.loc[1] + delta |
475 | 475 |
else: |
476 | 476 |
self.loc[1] = self.loc[1] - delta |
내보내기 Unified diff