Changeset 9867860 in sasview for src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
- Timestamp:
- Oct 24, 2017 10:12:28 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 4f9226c
- Parents:
- cca56a5 (diff), 5d1440e1 (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/FittingWidget.py
rcca56a5 r9867860 13 13 from PyQt4 import QtWebKit 14 14 15 from sasmodels import product 15 16 from sasmodels import generate 16 17 from sasmodels import modelinfo … … 52 53 53 54 class ToolTippedItemModel(QtGui.QStandardItemModel): 54 55 def __init__(self, parent = None): 55 """ 56 Subclass from QStandardItemModel to allow displaying tooltips in 57 QTableView model. 58 """ 59 def __init__(self, parent=None): 56 60 QtGui.QStandardItemModel.__init__(self,parent) 57 61 58 62 def headerData(self, section, orientation, role): 59 63 """ 64 Displays tooltip for each column's header 65 :param section: 66 :param orientation: 67 :param role: 68 :return: 69 """ 60 70 if role == QtCore.Qt.ToolTipRole: 61 71 if orientation == QtCore.Qt.Horizontal: … … 1039 1049 # Regardless of previous state, this should now be `plot show` functionality only 1040 1050 self.cmdPlot.setText("Show Plot") 1041 if not self.data_is_loaded:1042 1051 # Force data recalculation so existing charts are updated 1052 self.recalculatePlotData() 1043 1053 self.showPlot() 1044 1054 … … 1254 1264 structure_module = generate.load_kernel_module(structure_factor) 1255 1265 structure_parameters = modelinfo.make_parameter_table(getattr(structure_module, 'parameters', [])) 1266 structure_kernel = self.models[structure_factor]() 1267 1268 self.kernel_module._model_info = product.make_product_info(self.kernel_module._model_info, structure_kernel._model_info) 1256 1269 1257 1270 new_rows = FittingUtilities.addSimpleParametersToModel(structure_parameters, self.is2D)
Note: See TracChangeset
for help on using the changeset viewer.