Skip to content

Commit 757c0fc

Browse files
committed
Fix issue #162: match partial strings as well as wildcards in listview search
1 parent 827615d commit 757c0fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/listview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ bool ListViewProxy::filterAcceptsRow(int source_row, const QModelIndex&) const {
13211321
int ListViewProxy::setFilter(bool isOn, bool h, SCRef fl, int cn, ShaSet* s) {
13221322

13231323
#if QT_VERSION >= 0x060000
1324-
filter = QRegularExpression::fromWildcard(fl, Qt::CaseInsensitive);
1324+
filter = QRegularExpression::fromWildcard(fl, Qt::CaseInsensitive, QRegularExpression::UnanchoredWildcardConversion);
13251325
#else
13261326
filter = QRegExp(fl, Qt::CaseInsensitive, QRegExp::Wildcard);
13271327
#endif

0 commit comments

Comments
 (0)