Changeset 442a9ae in sasview for src/sas


Ignore:
Timestamp:
Nov 20, 2018 7:31:43 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:
d72ac57
Parents:
64b9e61
Message:

Select the constrained parameter for fitting. SASVIEW-1198

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

Legend:

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

    r64b9e61 r442a9ae  
    730730        constrained_tab.addConstraintToRow(constraint, constrained_row) 
    731731 
     732        # Select this parameter for adjusting/fitting 
     733        constrained_tab.selectCheckbox(constrained_row) 
     734 
     735 
    732736    def showMultiConstraint(self): 
    733737        """ 
     
    825829        if isBatch: 
    826830            self.chkChain.setChecked(is_chain) 
    827  
    828  
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r09e0c32 r442a9ae  
    25242524    def isCheckable(self, row): 
    25252525        return self._model_model.item(row, 0).isCheckable() 
     2526 
     2527    def selectCheckbox(self, row): 
     2528        """ 
     2529        Select the checkbox in given row. 
     2530        """ 
     2531        assert 0<= row <= self._model_model.rowCount() 
     2532        index = self._model_model.index(row, 0) 
     2533        item = self._model_model.itemFromIndex(index) 
     2534        item.setCheckState(QtCore.Qt.Checked) 
    25262535 
    25272536    def checkboxSelected(self, item): 
Note: See TracChangeset for help on using the changeset viewer.