From 18d123bcfbbb8ae6b7de68061d10fb191cbf9fe2 Mon Sep 17 00:00:00 2001 From: luddens Date: Tue, 28 May 2019 17:34:25 +0200 Subject: [PATCH] Set the completer case insensitive Set the completer case insensitive to match with the suggestion's list --- src/searchbar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/searchbar.cpp b/src/searchbar.cpp index bc330bd..3676bd3 100644 --- a/src/searchbar.cpp +++ b/src/searchbar.cpp @@ -62,6 +62,7 @@ SearchBar::SearchBar(QWidget *parent) : { setPlaceholderText(tr("Search")); m_completer.setCompletionMode(QCompleter::UnfilteredPopupCompletion); + m_completer.setCaseSensitivity(Qt::CaseInsensitive); setCompleter(&m_completer); connect(this, &QLineEdit::textEdited, this, &SearchBar::updateCompletion); #if 0 //The `activated` signal seems to not be emitted if user navigate in the page.