Skip to content

Commit

Permalink
fixed CTRL shortcuts for distortion models
Browse files Browse the repository at this point in the history
  • Loading branch information
dvida committed Aug 11, 2024
1 parent d0555a2 commit dc8b91e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Utils/SkyFit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,7 @@ def keyPressEvent(self, event):
# Change distortion type to poly3+radial5
if (event.key() == QtCore.Qt.Key_3) and (modifiers == QtCore.Qt.ControlModifier):

self.dist_type_index = 2
self.dist_type_index = 6
self.changeDistortionType()
self.tab.param_manager.updatePlatepar()
self.updateLeftLabels()
Expand All @@ -2900,7 +2900,7 @@ def keyPressEvent(self, event):
# Change distortion type to radial3
elif (event.key() == QtCore.Qt.Key_4) and (modifiers == QtCore.Qt.ControlModifier):

self.dist_type_index = 3
self.dist_type_index = 7
self.changeDistortionType()
self.tab.param_manager.updatePlatepar()
self.updateLeftLabels()
Expand All @@ -2910,7 +2910,7 @@ def keyPressEvent(self, event):
# Change distortion type to radial5
elif (event.key() == QtCore.Qt.Key_5) and (modifiers == QtCore.Qt.ControlModifier):

self.dist_type_index = 4
self.dist_type_index = 8
self.changeDistortionType()
self.tab.param_manager.updatePlatepar()
self.updateLeftLabels()
Expand All @@ -2920,7 +2920,7 @@ def keyPressEvent(self, event):
# Change distortion type to radial7
elif (event.key() == QtCore.Qt.Key_6) and (modifiers == QtCore.Qt.ControlModifier):

self.dist_type_index = 5
self.dist_type_index = 9
self.changeDistortionType()
self.tab.param_manager.updatePlatepar()
self.updateLeftLabels()
Expand All @@ -2930,7 +2930,7 @@ def keyPressEvent(self, event):
# Change distortion type to radial9
elif (event.key() == QtCore.Qt.Key_7) and (modifiers == QtCore.Qt.ControlModifier):

self.dist_type_index = 6
self.dist_type_index = 10
self.changeDistortionType()
self.tab.param_manager.updatePlatepar()
self.updateLeftLabels()
Expand Down

0 comments on commit dc8b91e

Please sign in to comment.