Ignore:
Timestamp:
Mar 25, 2019 9:06:44 AM (2 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl
Children:
b38c8c8
Parents:
2e7be0d
Message:

Removed redundant Chi2/npts display. SASVIEW-1173
Made Q range display a bit nicer to read

File:
1 edited

Legend:

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

    rb764ae5 r17e6a2b  
    8888        self.model.blockSignals(True) 
    8989        self.updateQRange(self.qmin, self.qmax, self.npts) 
    90         self.txtMaxRange.setText(str(self.qmax)) 
    91         self.txtMinRange.setText(str(self.qmin)) 
     90        self.txtMaxRange.setText(GuiUtils.formatNumber(self.qmax, high=True)) 
     91        self.txtMinRange.setText(GuiUtils.formatNumber(self.qmin, high=True)) 
    9292        self.txtNpts.setText(str(self.npts)) 
    9393        self.txtNptsFit.setText(str(self.npts)) 
     
    181181        Update the local model based on calculated values 
    182182        """ 
    183         self.model.item(MODEL.index('MIN_RANGE')).setText(str(q_range_min)) 
    184         self.model.item(MODEL.index('MAX_RANGE')).setText(str(q_range_max)) 
     183        qmax = GuiUtils.formatNumber(self.qmax, high=True) 
     184        qmin = GuiUtils.formatNumber(self.qmin, high=True) 
     185        self.model.item(MODEL.index('MIN_RANGE')).setText(qmin) 
     186        self.model.item(MODEL.index('MAX_RANGE')).setText(qmax) 
    185187        self.model.item(MODEL.index('NPTS')).setText(str(npts)) 
    186188        self.qmin, self.qmax, self.npts = q_range_min, q_range_max, npts 
Note: See TracChangeset for help on using the changeset viewer.