Ignore:
Timestamp:
Sep 4, 2018 5:49:47 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
ef3494b3
Parents:
c0a3b22e
git-author:
Torin Cooper-Bennun <torin.cooper-bennun@…> (07/23/18 06:25:14)
git-committer:
Torin Cooper-Bennun <torin.cooper-bennun@…> (09/04/18 05:49:47)
Message:

[CHERRY-PICK FROM a699172f8] in GUI, split params by P(Q), S(Q)

File:
1 edited

Legend:

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

    r6dbff18 r0d72cac  
    20312031        self.shell_names = self.shellNamesList() 
    20322032 
     2033        # Add a header 
     2034        header_row = [QtGui.QStandardItem() for i in range(5)] 
     2035        header_row[0].setText(self.kernel_module.name) 
     2036        font = header_row[0].font() 
     2037        font.setBold(True) 
     2038        header_row[0].setFont(font) 
     2039        for item in header_row: 
     2040            item.setEditable(False) 
     2041            item.setCheckable(False) 
     2042            item.setSelectable(False) 
     2043 
     2044        self._model_model.appendRow(header_row) 
     2045 
    20332046        # Update the QModel 
    20342047        new_rows = FittingUtilities.addParametersToModel(self.model_parameters, self.kernel_module, self.is2D) 
     
    20502063 
    20512064        self.kernel_module = MultiplicationModel(form_kernel, structure_kernel) 
     2065 
     2066        # Add a header 
     2067        header_row = [QtGui.QStandardItem() for i in range(5)] 
     2068        header_row[0].setText(self.kernel_module._model_info.composition[1][1].name) 
     2069        font = header_row[0].font() 
     2070        font.setBold(True) 
     2071        header_row[0].setFont(font) 
     2072        for item in header_row: 
     2073            item.setEditable(False) 
     2074            item.setCheckable(False) 
     2075            item.setSelectable(False) 
     2076 
     2077        self._model_model.appendRow(header_row) 
    20522078 
    20532079        new_rows = FittingUtilities.addSimpleParametersToModel(structure_parameters, self.is2D) 
Note: See TracChangeset for help on using the changeset viewer.