Ignore:
Timestamp:
Jul 27, 2017 4:05:50 AM (7 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:
7adc2a8
Parents:
b00414d
Message:

SASVIEW-627 Fixed multishell parameters in all models/views

File:
1 edited

Legend:

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

    • Property mode changed from 100755 to 100644
    rb00414d r0d13814  
    6161            editor.setValidator(validator) 
    6262            return editor 
     63        if index.column() in [self.PARAM_PROPERTY, self.PARAM_UNIT]: 
     64            # Set some columns uneditable 
     65            return None 
    6366 
    6467        return super(ModelViewDelegate, self).createEditor(widget, option, index) 
     
    226229        Overwrite generic painter for certain columns 
    227230        """ 
    228         if index.column() in (self.mag_min, self.mag_max): 
     231        if index.column() in (self.mag_min, self.mag_max, self.mag_unit): 
    229232            # Units - present in nice HTML 
    230233            options = QtGui.QStyleOptionViewItemV4(option) 
Note: See TracChangeset for help on using the changeset viewer.