Changeset 04972ea in sasview for src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
- Timestamp:
- Aug 3, 2018 8:31:45 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:
- 97df8a9
- Parents:
- 8e2cd79 (diff), 46f59ba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
r8e2cd79 r04972ea 148 148 item.append([item1, item2, item4, item5, item6]) 149 149 return item 150 151 def markParameterDisabled(model, row): 152 """Given the QModel row number, format to show it is not available for fitting""" 153 154 # If an error column is present, there are a total of 6 columns. 155 items = [model.item(row, c) for c in range(6)] 156 157 model.blockSignals(True) 158 159 for item in items: 160 if item is None: 161 continue 162 item.setEditable(False) 163 item.setCheckable(False) 164 165 item = items[0] 166 167 font = QtGui.QFont() 168 font.setItalic(True) 169 item.setFont(font) 170 item.setForeground(QtGui.QBrush(QtGui.QColor(100, 100, 100))) 171 item.setToolTip("This parameter cannot be fitted.") 172 173 model.blockSignals(False) 150 174 151 175 def addCheckedListToModel(model, param_list):
Note: See TracChangeset
for help on using the changeset viewer.