on xenial help sign in
Check if search word contains, not just startsWith
929a9fbMarius Gripsgard
plugins/Utils/appdrawerproxymodel.cpp+1−1
@@ -158,7 +158,7 @@ bool AppDrawerProxyModel::filterAcceptsRow(int source_row, const QModelIndex &so
158 allWords.prepend(m_source->data(m_source->index(source_row, 0), AppDrawerModelInterface::RoleName).toString());
158 allWords.prepend(m_source->data(m_source->index(source_row, 0), AppDrawerModelInterface::RoleName).toString());
159 bool found = false;
159 bool found = false;
160 Q_FOREACH (const QString &currentWord, allWords) {
160 Q_FOREACH (const QString &currentWord, allWords) {
161− if (currentWord.startsWith(m_filterString, Qt::CaseInsensitive)) {
161+ if (currentWord.contains(m_filterString, Qt::CaseInsensitive)) {
162 found = true;
162 found = true;
163 break;
163 break;
164 }
164 }