Allow to search theme editor keys by middle or end

This commit is contained in:
Eric Kotato 2020-07-31 05:31:30 +03:00
parent 9565276915
commit 93ab8bd607

View file

@ -59,7 +59,7 @@ public:
}
bool searchWordsContain(const QString &needle) const {
for_const (auto &word, _searchWords) {
if (word.startsWith(needle)) {
if (word.contains(needle, Qt::CaseInsensitive)) {
return true;
}
}