Helpviewer/History/HistoryCompleter.py

changeset 488
4174c2707dba
parent 323
75182cd9b2c5
child 791
9ec2ac20e54e
equal deleted inserted replaced
487:4d41d03d3d00 488:4174c2707dba
142 return 142 return
143 143
144 self.__isValid = valid 144 self.__isValid = valid
145 145
146 # tell the history completer that the model has changed 146 # tell the history completer that the model has changed
147 self.emit(SIGNAL("dataChanged(const QModelIndex&, const QModelIndex&)"), 147 self.dataChanged.emit(self.index(0, 0), self.index(0, self.rowCount() - 1))
148 self.index(0, 0), self.index(0, self.rowCount() - 1))
149 148
150 def filterAcceptsRow(self, sourceRow, sourceParent): 149 def filterAcceptsRow(self, sourceRow, sourceParent):
151 """ 150 """
152 Protected method to determine, if the row is acceptable. 151 Protected method to determine, if the row is acceptable.
153 152
228 self.setModelSorting(QCompleter.CaseSensitivelySortedModel) 227 self.setModelSorting(QCompleter.CaseSensitivelySortedModel)
229 228
230 self.__searchString = "" 229 self.__searchString = ""
231 self.__filterTimer = QTimer(self) 230 self.__filterTimer = QTimer(self)
232 self.__filterTimer.setSingleShot(True) 231 self.__filterTimer.setSingleShot(True)
233 self.connect(self.__filterTimer, SIGNAL("timeout()"), self.__updateFilter) 232 self.__filterTimer.timeout.connect(self.__updateFilter)
234 233
235 def pathFromIndex(self, idx): 234 def pathFromIndex(self, idx):
236 """ 235 """
237 Public method to get a path for a given index. 236 Public method to get a path for a given index.
238 237

eric ide

mercurial