1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Improved performance of searching in history model

- testing with QString::contains(QString) instead of QRegExp
This commit is contained in:
nowrep 2012-05-05 18:04:41 +02:00
parent b1b27a434e
commit 7037e562ae

View File

@ -531,6 +531,6 @@ bool HistoryFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sour
return true;
}
return (index.data(HistoryModel::UrlStringRole).toString().contains(filterRegExp()) ||
index.data(HistoryModel::TitleRole).toString().contains(filterRegExp()));
return (index.data(HistoryModel::UrlStringRole).toString().contains(m_pattern) ||
index.data(HistoryModel::TitleRole).toString().contains(m_pattern));
}