Change parent of filter models

This commit is contained in:
Alexander Cogneau 2015-08-21 16:56:36 +02:00
parent 729c10e0a9
commit 7ed4977d64
2 changed files with 1 additions and 5 deletions

View File

@ -165,7 +165,7 @@ class Completer(QObject):
Return:
A completion filter model.
"""
filtermodel = CompletionFilterModel(source=model, parent=self.parent())
filtermodel = CompletionFilterModel(source=model, parent=self)
return filtermodel
def _filter_cmdline_parts(self, parts, cursor_part):

View File

@ -40,10 +40,6 @@ class BaseCompletionModel(QStandardItemModel):
Used for showing completions later in the CompletionView. Supports setting
marks and adding new categories/items easily.
Attributes:
dumb_sort: the sorting that will be used by the wrapping
CompletionFilterModel
Class Attributes:
COLUMN_WIDTHS: The width percentages of the columns used in the
completion view.