Helpviewer/History/HistoryCompleter.py

changeset 3591
2f2a4a76dd22
parent 3178
f25fc1364c88
child 3656
441956d8fce5
equal deleted inserted replaced
3590:5280e37405b8 3591:2f2a4a76dd22
155 self.dataChanged.emit(self.index(0, 0), self.index(0, 155 self.dataChanged.emit(self.index(0, 0), self.index(0,
156 self.rowCount() - 1)) 156 self.rowCount() - 1))
157 157
158 def filterAcceptsRow(self, sourceRow, sourceParent): 158 def filterAcceptsRow(self, sourceRow, sourceParent):
159 """ 159 """
160 Protected method to determine, if the row is acceptable. 160 Public method to determine, if the row is acceptable.
161 161
162 @param sourceRow row number in the source model (integer) 162 @param sourceRow row number in the source model (integer)
163 @param sourceParent index of the source item (QModelIndex) 163 @param sourceParent index of the source item (QModelIndex)
164 @return flag indicating acceptance (boolean) 164 @return flag indicating acceptance (boolean)
165 """ 165 """
178 178
179 return False 179 return False
180 180
181 def lessThan(self, left, right): 181 def lessThan(self, left, right):
182 """ 182 """
183 Protected method used to sort the displayed items. 183 Public method used to sort the displayed items.
184 184
185 It implements a special sorting function based on the history entry's 185 It implements a special sorting function based on the history entry's
186 frequency giving a bonus to hits that match on a word boundary so that 186 frequency giving a bonus to hits that match on a word boundary so that
187 e.g. "dot.python-projects.org" is a better result for typing "dot" than 187 e.g. "dot.python-projects.org" is a better result for typing "dot" than
188 "slashdot.org". However, it only looks for the string in the host name, 188 "slashdot.org". However, it only looks for the string in the host name,

eric ide

mercurial