Fix checks
This commit is contained in:
parent
89bd255be1
commit
49a3b57544
@ -10,7 +10,7 @@ Contains:
|
||||
from collections import OrderedDict
|
||||
|
||||
from PyQt5.QtCore import (QAbstractItemModel, Qt, QModelIndex, QVariant,
|
||||
QSortFilterProxyModel, pyqtSignal)
|
||||
QSortFilterProxyModel)
|
||||
|
||||
|
||||
class CompletionModel(QAbstractItemModel):
|
||||
@ -288,6 +288,10 @@ class CompletionFilterModel(QSortFilterProxyModel):
|
||||
return self._pattern
|
||||
|
||||
def setsrc(self, model):
|
||||
"""Set a new source model and clear the pattern.
|
||||
|
||||
model -- The new source model.
|
||||
"""
|
||||
self.setSourceModel(model)
|
||||
self.srcmodel = model
|
||||
self.pattern = ''
|
||||
|
Loading…
Reference in New Issue
Block a user