Ignore:
Timestamp:
May 12, 2017 6:18:48 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:
6011788
Parents:
d60da0c
Message:

Custom delegate for fancy display of units

File:
1 edited

Legend:

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

    rd60da0c rad6b4e2  
    3333from sas.qtgui.Perspectives.Fitting.OptionsWidget import OptionsWidget 
    3434from sas.qtgui.Perspectives.Fitting.FitPage import FitPage 
     35from sas.qtgui.Perspectives.Fitting.ViewDelegate import ModelViewDelegate 
    3536 
    3637TAB_MAGNETISM = 4 
     
    126127        self.readCategoryInfo() 
    127128        self.model_parameters = None 
     129 
     130        # Delegates for custom editing and display 
     131        self.lstParams.setItemDelegate(ModelViewDelegate(self)) 
     132 
    128133        self.lstParams.setAlternatingRowColors(True) 
    129134        stylesheet = """ 
Note: See TracChangeset for help on using the changeset viewer.