Changeset b87dc1a in sasview


Ignore:
Timestamp:
Aug 2, 2018 5:53:51 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
c0de493
Parents:
18d5c94a
Message:

keep non-fittable rows selectable, to not break layout

Location:
src/sas/qtgui/Perspectives/Fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py

    r18d5c94a rb87dc1a  
    151151 
    152152def markParameterDisabled(model, row): 
    153     """Given the QModel row number, format to show it is not available for 
    154     fitting""" 
    155     items = [model.item(row, c) for c in range(5)] 
     153    """Given the QModel row number, format to show it is not available for fitting""" 
     154 
     155    # If an error column is present, there are a total of 6 columns. 
     156    items = [model.item(row, c) for c in range(6)] 
    156157 
    157158    model.blockSignals(True) 
     
    161162            continue 
    162163        item.setEditable(False) 
    163         item.setSelectable(False) 
    164164        item.setCheckable(False) 
    165165 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r18d5c94a rb87dc1a  
    19701970        for row in new_rows: 
    19711971            self._model_model.appendRow(row) 
    1972             # disable fitting of parameters not listed in self.kernel_module 
    1973             # (probably radius_effective) 
     1972            # disable fitting of parameters not listed in self.kernel_module (probably radius_effective) 
    19741973            if row[0].text() not in self.kernel_module.params.keys(): 
    19751974                row_num = self._model_model.rowCount() - 1 
Note: See TracChangeset for help on using the changeset viewer.