Commit 460e1f54 authored by Thomas Vincent's avatar Thomas Vincent

Avoid local variable/attribute duplicate

parent f239d0de
......@@ -315,16 +315,16 @@ class QSpaceView(Qt.QMainWindow):
self.__cutPlaneChanged)
self.__view3d.getCutPlanes()[0].sigDataChanged.connect(self.__cutPlaneChanged)
self.__fitWidget = fitWidget = FitWidget(self.__qspaceH5.filename)
fitWidget.roiWidget().sigRoiChanged.connect(self.__slotRoiChanged)
fitWidget.roiWidget().sigRoiToggled.connect(self.__slotRoiToggled)
fitWidget.sigProcessStarted.connect(self.__slotFitProcessStarted)
fitWidget.sigProcessDone.connect(self.__slotFitProcessDone)
fitWidget.sigFitTypeChanged.connect(self.__nextFitFile)
self.__fitWidget = FitWidget(self.__qspaceH5.filename)
self.__fitWidget.roiWidget().sigRoiChanged.connect(self.__slotRoiChanged)
self.__fitWidget.roiWidget().sigRoiToggled.connect(self.__slotRoiToggled)
self.__fitWidget.sigProcessStarted.connect(self.__slotFitProcessStarted)
self.__fitWidget.sigProcessDone.connect(self.__slotFitProcessDone)
self.__fitWidget.sigFitTypeChanged.connect(self.__nextFitFile)
self.__nextFitFile()
fitDock = Qt.QDockWidget()
fitDock.setWindowTitle('Fit')
fitDock.setWidget(fitWidget)
fitDock.setWidget(self.__fitWidget)
features = fitDock.features() ^ Qt.QDockWidget.DockWidgetClosable
fitDock.setFeatures(features)
self.addDockWidget(Qt.Qt.RightDockWidgetArea, fitDock)
......
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