From 6d863d9770d0f553b7a565b3bf91d9927f2c4e48 Mon Sep 17 00:00:00 2001 From: Xiao Yi Fang Date: Fri, 21 Jun 2024 18:04:02 +0800 Subject: [PATCH] opt: stardict replace QRegExp with QRegularExpression --- src/dict/stardict.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict/stardict.cc b/src/dict/stardict.cc index c9ef6e72..d2bfcbaf 100644 --- a/src/dict/stardict.cc +++ b/src/dict/stardict.cc @@ -614,7 +614,7 @@ void StardictDictionary::pangoToHtml( QString & text ) * Attributes "fallback", "lang", "gravity", "gravity_hint" just ignored */ - QRegularExpression spanRegex( "]*)>", Qt::CaseInsensitive ); + QRegularExpression spanRegex( "]*)>", QRegularExpression::CaseInsensitiveOption ); QRegularExpression styleRegex( "(\\w+)=\"([^\"]*)\"" ); text.replace( "\n", "
" );