Changeset 29eb947 in sasview for src/sas/qtgui/Perspectives


Ignore:
Timestamp:
Mar 23, 2017 3:41:31 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
b1e36a3
Parents:
0979dfb
Message:

Fixed tooltip size. Fixed a bug in structure factor control

File:
1 edited

Legend:

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

    r351b53e r29eb947  
    256256            self.disableModelCombo() 
    257257            self.enableStructureCombo() 
     258            self._model_model.clear() 
    258259            return 
    259260 
     
    309310        """ 
    310311        model = str(self.cbModel.currentText()) 
     312        category = str(self.cbCategory.currentText()) 
    311313        structure = str(self.cbStructureFactor.currentText()) 
     314        if category == CATEGORY_STRUCTURE: 
     315            model = None 
    312316        self.SASModelToQModel(model, structure_factor=structure) 
    313317 
     
    419423        name_index = self._poly_model.index(model_row, 0) 
    420424        # Extract changed value. Assumes proper validation by QValidator/Delegate 
    421         value = float(item.text()) 
     425        # Checkbox in column 0 
     426        if model_column == 0: 
     427            value = item.checkState() 
     428        else: 
     429            value = float(item.text()) 
    422430        parameter_name = str(self._poly_model.data(name_index).toPyObject()) # "distribution of sld" etc. 
    423431        if "Distribution of" in parameter_name: 
Note: See TracChangeset for help on using the changeset viewer.