Ignore:
Timestamp:
Sep 27, 2018 6:13:13 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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 06:11:38)
git-committer:
Piotr Rozyczko <piotr.rozyczko@…> (09/27/18 06:13:13)
Message:

Slicer Parameters should also close the corresponding subwindow on exit.
Also: fixed toFloat() conversion.
SASVIEW-1115

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/SlicerParameters.py

    ree22241 r2f55df6  
    2020    passed from a slicer instance. 
    2121    """ 
    22     close_signal = QtCore.pyqtSignal() 
     22    closeWidgetSignal = QtCore.pyqtSignal() 
    2323    def __init__(self, model=None, validate_method=None): 
    2424        super(SlicerParameters, self).__init__() 
     
    7979        signal to the parent. 
    8080        """ 
    81         self.close_signal.emit() 
     81        self.closeWidgetSignal.emit() 
    8282        if event: 
    8383            event.accept() 
     
    163163 
    164164        # 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() 
    167167 
    168168        validated = True 
Note: See TracChangeset for help on using the changeset viewer.