use 'contains' instead of 'prefix' search in tag completer

This commit is contained in:
Damien Elmes 2021-02-05 21:14:35 +10:00
parent 27daaace7d
commit efd8c527a6

View File

@ -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: