diff options
author | Szabolcs David <[email protected]> | 2023-03-08 15:04:07 +0100 |
---|---|---|
committer | Szabolcs David <[email protected]> | 2023-04-05 10:50:54 +0000 |
commit | 1fe0003d727bdacd30c552f01000c434971ad3ca (patch) | |
tree | 9bb8e594214e02c8230cea07387d47850bee9505 /src/navigationhistoryproxymodel.cpp | |
parent | a09ec269e8b296d39d78b45ae251edb3d7bada41 (diff) |
Also fix an old issue: tab view now presents preview images.
Change-Id: I47eb48b626e62e53e130734c92cc7ec8ed9ecb66
Reviewed-by: Michal Klocek <[email protected]>
Diffstat (limited to 'src/navigationhistoryproxymodel.cpp')
-rw-r--r-- | src/navigationhistoryproxymodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/navigationhistoryproxymodel.cpp b/src/navigationhistoryproxymodel.cpp index a124f76..a605dd3 100644 --- a/src/navigationhistoryproxymodel.cpp +++ b/src/navigationhistoryproxymodel.cpp @@ -40,8 +40,8 @@ bool NavigationHistoryProxyModel::filterAcceptsRow(int sourceRow, const QModelIn QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent); // Use UrlRole and TitleRole instead of DisplayRole - return (sourceModel()->data(index, Qt::UserRole + 1).toString().contains(filterRegExp()) - || sourceModel()->data(index, Qt::UserRole + 2).toString().contains(filterRegExp())); + return (sourceModel()->data(index, Qt::UserRole + 1).toString().contains(filterRegularExpression()) + || sourceModel()->data(index, Qt::UserRole + 2).toString().contains(filterRegularExpression())); } void NavigationHistoryProxyModel::setEnabled(bool enabled) @@ -63,6 +63,6 @@ void NavigationHistoryProxyModel::setSearchString(const QString &pattern) return; m_searchString = pattern; - setFilterRegExp(QRegExp(pattern, Qt::CaseInsensitive, QRegExp::FixedString)); + setFilterRegularExpression(QRegularExpression(pattern, QRegularExpression::CaseInsensitiveOption)); emit searchStringChanged(); } |