From efd8c527a61d2a8e4ae5a689b29e00773401033c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 5 Feb 2021 21:14:35 +1000 Subject: [PATCH] use 'contains' instead of 'prefix' search in tag completer --- qt/aqt/tagedit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/tagedit.py b/qt/aqt/tagedit.py index c3850ccb8..cf2302784 100644 --- a/qt/aqt/tagedit.py +++ b/qt/aqt/tagedit.py @@ -28,6 +28,7 @@ class TagEdit(QLineEdit): self.completer = QCompleter(self.model, parent) self.completer.setCompletionMode(QCompleter.PopupCompletion) self.completer.setCaseSensitivity(Qt.CaseInsensitive) + self.completer.setFilterMode(Qt.MatchContains) self.setCompleter(self.completer) def setCol(self, col: Collection) -> None: