From 101a673cf6629ad160d98dee507874b5b2e0ba99 Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Sat, 31 Dec 2022 11:01:45 +0800 Subject: [PATCH] fix: filter headword return less than expected matched results. --- headwordsmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headwordsmodel.cpp b/headwordsmodel.cpp index bafd685f..3c266358 100644 --- a/headwordsmodel.cpp +++ b/headwordsmodel.cpp @@ -41,7 +41,7 @@ void HeadwordListModel::setFilter( QRegularExpression reg ) } filtering = true; filterWords.clear(); - auto sr = _dict->prefixMatch( gd::toWString( reg.pattern() ), 30 ); + auto sr = _dict->prefixMatch( gd::toWString( reg.pattern() ), 500 ); connect( sr.get(), &Dictionary::Request::finished, this, &HeadwordListModel::requestFinished, Qt::QueuedConnection ); queuedRequests.push_back( sr ); }