Changes in src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py [57be490:b87dc1a] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
r57be490 rb87dc1a 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 fitting""" 154 155 # If an error column is present, there are a total of 6 columns. 156 items = [model.item(row, c) for c in range(6)] 157 158 model.blockSignals(True) 159 160 for item in items: 161 if item is None: 162 continue 163 item.setEditable(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.