From 75e0dfdec7e4d28124553be68c369eefdc1b8b69 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Sun, 20 Mar 2022 19:27:35 +0800 Subject: [PATCH] fix: fix todo when upgrade to 6.2 --- articleview.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/articleview.cc b/articleview.cc index e6cb45b0..29e5e7a5 100644 --- a/articleview.cc +++ b/articleview.cc @@ -492,10 +492,9 @@ void ArticleView::showDefinition( QString const & word, QStringList const & dict Utils::Url::addQueryItem( req, "word", word ); Utils::Url::addQueryItem( req, "dictionaries", dictIDs.join( ",") ); Utils::Url::addQueryItem( req, "regexp", searchRegExp.pattern() ); - //todo -// if( searchRegExp.patternOptions () == QRegularExpression:: ) + if( searchRegExp.caseSensitivity() == Qt::CaseSensitive ) 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, "group", QString::number( group ) ); if( ignoreDiacritics )