Helpviewer/History/HistoryFilterModel.py

changeset 2126
3744863a534e
parent 2081
b7ccd563eeb6
child 2302
f29e9405c851
equal deleted inserted replaced
2124:909d55803dd6 2126:3744863a534e
5 5
6 """ 6 """
7 Module implementing the history filter model. 7 Module implementing the history filter model.
8 """ 8 """
9 9
10 from PyQt4.QtCore import Qt, QDateTime, QModelIndex, qVersion 10 from PyQt4.QtCore import Qt, QDateTime, QModelIndex
11 from PyQt4.QtGui import QAbstractProxyModel 11 from PyQt4.QtGui import QAbstractProxyModel
12 12
13 from .HistoryModel import HistoryModel 13 from .HistoryModel import HistoryModel
14 14
15 15
137 Private slot to handle the change of data of the source model. 137 Private slot to handle the change of data of the source model.
138 138
139 @param topLeft index of top left data element (QModelIndex) 139 @param topLeft index of top left data element (QModelIndex)
140 @param bottomRight index of bottom right data element (QModelIndex) 140 @param bottomRight index of bottom right data element (QModelIndex)
141 """ 141 """
142 if qVersion() >= "5.0.0": 142 self.dataChanged.emit(
143 self.dataChanged.emit( 143 self.mapFromSource(topLeft), self.mapFromSource(bottomRight))
144 self.mapFromSource(topLeft), self.mapFromSource(bottomRight), [])
145 else:
146 self.dataChanged.emit(
147 self.mapFromSource(topLeft), self.mapFromSource(bottomRight))
148 144
149 def headerData(self, section, orientation, role=Qt.DisplayRole): 145 def headerData(self, section, orientation, role=Qt.DisplayRole):
150 """ 146 """
151 Public method to get the header data. 147 Public method to get the header data.
152 148

eric ide

mercurial