Change parent of filter models
This commit is contained in:
parent
729c10e0a9
commit
7ed4977d64
@ -165,7 +165,7 @@ class Completer(QObject):
|
|||||||
Return:
|
Return:
|
||||||
A completion filter model.
|
A completion filter model.
|
||||||
"""
|
"""
|
||||||
filtermodel = CompletionFilterModel(source=model, parent=self.parent())
|
filtermodel = CompletionFilterModel(source=model, parent=self)
|
||||||
return filtermodel
|
return filtermodel
|
||||||
|
|
||||||
def _filter_cmdline_parts(self, parts, cursor_part):
|
def _filter_cmdline_parts(self, parts, cursor_part):
|
||||||
|
@ -40,10 +40,6 @@ class BaseCompletionModel(QStandardItemModel):
|
|||||||
Used for showing completions later in the CompletionView. Supports setting
|
Used for showing completions later in the CompletionView. Supports setting
|
||||||
marks and adding new categories/items easily.
|
marks and adding new categories/items easily.
|
||||||
|
|
||||||
Attributes:
|
|
||||||
dumb_sort: the sorting that will be used by the wrapping
|
|
||||||
CompletionFilterModel
|
|
||||||
|
|
||||||
Class Attributes:
|
Class Attributes:
|
||||||
COLUMN_WIDTHS: The width percentages of the columns used in the
|
COLUMN_WIDTHS: The width percentages of the columns used in the
|
||||||
completion view.
|
completion view.
|
||||||
|
Loading…
Reference in New Issue
Block a user