on xenial help sign in
Check if search word contains, not just startsWith
commit929a9fb1aeccbfe01664a88a5c56881b60207348 authorMarius Gripsgard <marius@ubports.com> dateMon 23 Sep 2019, 02:57 (7 years ago) parent3f2de38
1 file changed+1−1
plugins/Utils/appdrawerproxymodel.cpp+1−1
plugins/Utils/appdrawerproxymodel.cpp+1−1
@@ -158,7 +158,7 @@ bool AppDrawerProxyModel::filterAcceptsRow(int source_row, const QModelIndex &so
158158 allWords.prepend(m_source->data(m_source->index(source_row, 0), AppDrawerModelInterface::RoleName).toString());
159159 bool found = false;
160160 Q_FOREACH (const QString &currentWord, allWords) {
161− if (currentWord.startsWith(m_filterString, Qt::CaseInsensitive)) {
161+ if (currentWord.contains(m_filterString, Qt::CaseInsensitive)) {
162162 found = true;
163163 break;
164164 }