fix: fix todo when upgrade to 6.2

This commit is contained in:
YiFang Xiao 2022-03-20 19:27:35 +08:00
parent baf6685618
commit 75e0dfdec7

View file

@ -492,10 +492,9 @@ void ArticleView::showDefinition( QString const & word, QStringList const & dict
Utils::Url::addQueryItem( req, "word", word ); Utils::Url::addQueryItem( req, "word", word );
Utils::Url::addQueryItem( req, "dictionaries", dictIDs.join( ",") ); Utils::Url::addQueryItem( req, "dictionaries", dictIDs.join( ",") );
Utils::Url::addQueryItem( req, "regexp", searchRegExp.pattern() ); Utils::Url::addQueryItem( req, "regexp", searchRegExp.pattern() );
//todo if( searchRegExp.caseSensitivity() == Qt::CaseSensitive )
// if( searchRegExp.patternOptions () == QRegularExpression:: )
Utils::Url::addQueryItem( req, "matchcase", "1" ); Utils::Url::addQueryItem( req, "matchcase", "1" );
// if( searchRegExp.patternOptions () == PatternOptions::WildcardUnix ) if( searchRegExp.patternSyntax() == QRegExp::WildcardUnix )
Utils::Url::addQueryItem( req, "wildcards", "1" ); Utils::Url::addQueryItem( req, "wildcards", "1" );
Utils::Url::addQueryItem( req, "group", QString::number( group ) ); Utils::Url::addQueryItem( req, "group", QString::number( group ) );
if( ignoreDiacritics ) if( ignoreDiacritics )