Ignore:
File:
1 edited

Legend:

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

    ra95c44b r8f2548c  
    5050 
    5151USING_TWISTED = True 
    52  
    53 class ToolTippedItemModel(QtGui.QStandardItemModel): 
    54  
    55     def __init__(self, parent = None): 
    56         QtGui.QStandardItemModel.__init__(self,parent) 
    57  
    58     def headerData(self, section, orientation, role): 
    59  
    60         if role == QtCore.Qt.ToolTipRole: 
    61             if orientation == QtCore.Qt.Horizontal: 
    62                 return QtCore.QString(str(self.header_tooltips[section])) 
    63  
    64         return QtGui.QStandardItemModel.headerData(self, section, orientation, role) 
    6552 
    6653class FittingWidget(QtGui.QWidget, Ui_FittingWidgetUI): 
     
    253240        # We can't use a single model here, due to restrictions on flattening 
    254241        # the model tree with subclassed QAbstractProxyModel... 
    255         self._model_model = ToolTippedItemModel() 
    256         self._poly_model = ToolTippedItemModel() 
    257         self._magnet_model = ToolTippedItemModel() 
     242        self._model_model = QtGui.QStandardItemModel() 
     243        self._poly_model = QtGui.QStandardItemModel() 
     244        self._magnet_model = QtGui.QStandardItemModel() 
    258245 
    259246        # Param model displayed in param list 
Note: See TracChangeset for help on using the changeset viewer.