fix: filter headword return less than expected matched results.

This commit is contained in:
Xiao YiFang 2022-12-31 11:01:45 +08:00
parent 0089420801
commit 101a673cf6

View file

@ -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 );
}