Changeset 18d5c94a in sasview for src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
- Timestamp:
- Aug 1, 2018 9:33:42 AM (6 years ago)
- 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:
- b87dc1a
- Parents:
- cf8d6c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
r57be490 r18d5c94a 149 149 item.append([item1, item2, item4, item5, item6]) 150 150 return item 151 152 def markParameterDisabled(model, row): 153 """Given the QModel row number, format to show it is not available for 154 fitting""" 155 items = [model.item(row, c) for c in range(5)] 156 157 model.blockSignals(True) 158 159 for item in items: 160 if item is None: 161 continue 162 item.setEditable(False) 163 item.setSelectable(False) 164 item.setCheckable(False) 165 166 item = items[0] 167 168 font = QtGui.QFont() 169 font.setItalic(True) 170 item.setFont(font) 171 item.setForeground(QtGui.QBrush(QtGui.QColor(100, 100, 100))) 172 item.setToolTip("This parameter cannot be fitted.") 173 174 model.blockSignals(False) 151 175 152 176 def addCheckedListToModel(model, param_list):
Note: See TracChangeset
for help on using the changeset viewer.