프로젝트

일반

사용자정보

개정판 67cd9ddb

ID67cd9ddbdce9025ed6f1e8aef2e9e0d6bcf83869
상위 e05a52a4
하위 904f6958

백흠경이(가) 약 5년 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)