개정판 cb096dae
issue #563: spec break auto positioning fix
Change-Id: Icd25c7030694d2bb5153c4c12688ae90af226bff
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
783 | 783 |
new_y = round((up_down_find[0].center().y() + up_down_find[1].center().y()) / 2) |
784 | 784 |
spec_break.loc = [new_x - spec_break.symbolOrigin[0], new_y - spec_break.symbolOrigin[1]] |
785 | 785 |
spec_break.origin = [new_x, new_y] |
786 |
spec_break.angle = up_down_find[0].angle |
|
786 | 787 |
|
787 | 788 |
spec_break_items.append(spec_break) |
788 | 789 |
|
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
996 | 996 |
@history 2018.05.17 Jeongwoo Add if-statement and move 'break' |
997 | 997 |
2018.05.25 Jeongwoo Seperate delete item method |
998 | 998 |
''' |
999 |
|
|
1000 | 999 |
def keyPressEvent(self, event): |
1001 | 1000 |
from EngineeringErrorItem import QEngineeringErrorItem |
1002 | 1001 |
from RotateSymbolDialog import QRotateSymbolDialog |
... | ... | |
1058 | 1057 |
self.rotate(self.getCurrentPoint(), self.angle) |
1059 | 1058 |
|
1060 | 1059 |
def bind_close_items(self): |
1060 |
""" connect close item by pressing B """ |
|
1061 | 1061 |
from EngineeringLineItem import QEngineeringLineItem |
1062 | 1062 |
|
1063 | 1063 |
scene = self.scene() |
내보내기 Unified diff