Changeset 16afe01 in sasview


Ignore:
Timestamp:
Oct 23, 2017 4:03:53 AM (5 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:
8d39961, e0b2b2c, f4a1433
Parents:
7d9c83c
Message:

Bring back fancy display of units in fitting

File:
1 edited

Legend:

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

    r8f2548c r16afe01  
    1919        self.param_value=1 
    2020        self.param_min=2 
    21         self.param_max=2 
    22         self.param_unit=2 
    23  
    24     def editableParameters(self): 
    25         return [self.param_value, self.param_min, self.param_max] 
     21        self.param_max=3 
     22        self.param_unit=4 
     23 
     24    def fancyColumns(self): 
     25        return [self.param_value, self.param_min, self.param_max, self.param_unit] 
    2626 
    2727    def addErrorColumn(self): 
     
    4141        Overwrite generic painter for certain columns 
    4242        """ 
    43         if index.column() in self.editableParameters(): 
     43        if index.column() in self.fancyColumns(): 
    4444            # Units - present in nice HTML 
    4545            options = QtGui.QStyleOptionViewItemV4(option) 
Note: See TracChangeset for help on using the changeset viewer.