use 'contains' instead of 'prefix' search in tag completer
This commit is contained in:
parent
27daaace7d
commit
efd8c527a6
@ -28,6 +28,7 @@ class TagEdit(QLineEdit):
|
|||||||
self.completer = QCompleter(self.model, parent)
|
self.completer = QCompleter(self.model, parent)
|
||||||
self.completer.setCompletionMode(QCompleter.PopupCompletion)
|
self.completer.setCompletionMode(QCompleter.PopupCompletion)
|
||||||
self.completer.setCaseSensitivity(Qt.CaseInsensitive)
|
self.completer.setCaseSensitivity(Qt.CaseInsensitive)
|
||||||
|
self.completer.setFilterMode(Qt.MatchContains)
|
||||||
self.setCompleter(self.completer)
|
self.setCompleter(self.completer)
|
||||||
|
|
||||||
def setCol(self, col: Collection) -> None:
|
def setCol(self, col: Collection) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user