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