mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Set the completer case insensitive
Set the completer case insensitive to match with the suggestion's list
This commit is contained in:
parent
f47d8f2243
commit
18d123bcfb
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user