개정판 67cd9ddb
issue #366: Undo/Redo for flip
Change-Id: Icea5203d65651f46a832ddff1a821c9b7c4c64a6
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
1036 | 1036 |
|
1037 | 1037 |
if not self.isSelected(): |
1038 | 1038 |
return |
1039 |
if event.key() == Qt.Key_B: |
|
1039 |
elif event.key() == Qt.Key_B:
|
|
1040 | 1040 |
self.bind_close_items() |
1041 |
""" |
|
1042 |
elif event.key() == Qt.Key_R and QApplication.keyboardModifiers() != Qt.ControlModifier and \ |
|
1043 |
type(self) is not QEngineeringErrorItem: |
|
1044 |
self.rotateSymbol() |
|
1045 |
""" |
|
1046 |
if event.key() == Qt.Key_O and type(self) is not QEngineeringErrorItem: |
|
1041 |
elif event.key() == Qt.Key_O and type(self) is not QEngineeringErrorItem: |
|
1047 | 1042 |
pass |
1048 | 1043 |
elif event.key() == Qt.Key_C and type(self) is not QEngineeringErrorItem: |
1049 | 1044 |
self.changeConnPoint() |
1050 |
elif event.key() == Qt.Key_F and type(self) is not QEngineeringErrorItem: |
|
1051 |
self.flip = 1 if self.flip is 0 else 0 |
|
1052 |
self.flip_symbol() |
|
1053 | 1045 |
elif event.key() == Qt.Key_Return: |
1054 | 1046 |
return |
1055 | 1047 |
# disable |
내보내기 Unified diff