Changeset 2f55df6 in sasview
- Timestamp:
- Sep 27, 2018 4:13:13 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 51b9c14
- Parents:
- b38871e
- git-author:
- Piotr Rozyczko <piotr.rozyczko@…> (09/27/18 04:11:38)
- git-committer:
- Piotr Rozyczko <piotr.rozyczko@…> (09/27/18 04:13:13)
- Location:
- src/sas/qtgui/Plotting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Plotter2D.py
r63467b6 r2f55df6 229 229 def slicer_closed(): 230 230 # Need to disconnect the signal!! 231 self.slicer_widget.close_signal.disconnect() 231 self.slicer_widget.closeWidgetSignal.disconnect() 232 self.manager.parent.workspace().removeSubWindow(self.slicer_subwindow) 232 233 # reset slicer_widget on "Edit Slicer Parameters" window close 233 234 self.slicer_widget = None … … 237 238 self.slicer_widget = SlicerParameters(model=self.param_model, 238 239 validate_method=self.slicer.validate) 239 self.slicer_widget.close _signal.connect(slicer_closed)240 self.slicer_widget.closeWidgetSignal.connect(slicer_closed) 240 241 # Add the plot to the workspace 241 self. manager.parent.workspace().addSubWindow(self.slicer_widget)242 self.slicer_subwindow = self.manager.parent.workspace().addSubWindow(self.slicer_widget) 242 243 243 244 self.slicer_widget.show() -
src/sas/qtgui/Plotting/SlicerParameters.py
ree22241 r2f55df6 20 20 passed from a slicer instance. 21 21 """ 22 close _signal = QtCore.pyqtSignal()22 closeWidgetSignal = QtCore.pyqtSignal() 23 23 def __init__(self, model=None, validate_method=None): 24 24 super(SlicerParameters, self).__init__() … … 79 79 signal to the parent. 80 80 """ 81 self.close _signal.emit()81 self.closeWidgetSignal.emit() 82 82 if event: 83 83 event.accept() … … 163 163 164 164 # Find out the changed parameter name and proposed value 165 new_value = self.editor.text().toFloat()[0]166 param_name = str(model.sourceModel().item(index.row(),0).text())165 new_value = GuiUtils.toDouble(self.editor.text()) 166 param_name = model.sourceModel().item(index.row(),0).text() 167 167 168 168 validated = True -
src/sas/qtgui/Plotting/UnitTesting/SlicerParametersTest.py
r725d9c06 r2f55df6 60 60 61 61 # Set up the spy 62 spy_close = QtSignalSpy(self.widget, self.widget.close _signal)62 spy_close = QtSignalSpy(self.widget, self.widget.closeWidgetSignal) 63 63 # Click on the "Close" button 64 64 QtTest.QTest.mouseClick(self.widget.buttonBox.button(QtWidgets.QDialogButtonBox.Close), QtCore.Qt.LeftButton)
Note: See TracChangeset
for help on using the changeset viewer.