Skip to content

Commit

Permalink
Using valueChanged rather than editingFinished
Browse files Browse the repository at this point in the history
  • Loading branch information
DolicaAkelloEgwel committed Mar 3, 2021
1 parent aa0938f commit b060c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mantidimaging/gui/utility/qt_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ def set_spin_box(box, cast_func):
right_widget = Qt.QSpinBox()
set_spin_box(right_widget, int)
if on_change is not None:
right_widget.editingFinished.connect(lambda: on_change())
right_widget.valueChanged.connect(lambda: on_change())

elif dtype == 'float' or dtype == Type.FLOAT:
right_widget = Qt.QDoubleSpinBox()
set_spin_box(right_widget, float)
if on_change is not None:
right_widget.editingFinished.connect(lambda: on_change())
right_widget.valueChanged.connect(lambda: on_change())

elif dtype == 'bool' or dtype == Type.BOOL:
right_widget = Qt.QCheckBox()
Expand Down

0 comments on commit b060c02

Please sign in to comment.