Commit 071bb54f authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[gui][shift] Update fitlered shift array with values of dx dy widgets

parent f6f7b961
Pipeline #53004 passed with stage
in 2 minutes and 10 seconds
......@@ -117,6 +117,8 @@ class ShiftCorrectionWidget(qt.QMainWindow):
self._inputDock.widget.correctionB.clicked.connect(self.correct)
self._inputDock.widget.abortB.clicked.connect(self.abort)
self._inputDock.widget.dxLE.editingFinished.connect(self._updateShiftValue)
self._inputDock.widget.dyLE.editingFinished.connect(self._updateShiftValue)
self._inputDock.widget._findShiftB.clicked.connect(self._findShift)
self._chooseDimensionDock.widget.filterChanged.connect(self._filterStack)
self._chooseDimensionDock.widget.stateDisabled.connect(self._wholeStack)
......@@ -187,6 +189,10 @@ class ShiftCorrectionWidget(qt.QMainWindow):
self.thread_detection.start()
self.computingSignal.emit(True)
def _updateShiftValue(self):
if self._filtered_shift is not None:
self._filtered_shift[self._dimension[1]] = [self._inputDock.widget.getDy(), self._inputDock.widget.getDx()]
def _updateShift(self):
self._inputDock.widget._findShiftB.setEnabled(True)
self.thread_detection.finished.disconnect(self._updateShift)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment