From 97b2ebe1b0d2bafb9d870bc9422ee721e08a6657 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Sat, 15 Jul 2023 21:03:02 -0500 Subject: QRegEx -> QRegularExpression I think these changes would still be fine in Qt5, but are required for Qt6. Also DataLocation was deprecated in v6, AppLocalDataLocation is the same for both Qt5 and Qt6. --- quackleio/dictimplementation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'quackleio/dictimplementation.cpp') diff --git a/quackleio/dictimplementation.cpp b/quackleio/dictimplementation.cpp index 43c1005..4dd4260 100644 --- a/quackleio/dictimplementation.cpp +++ b/quackleio/dictimplementation.cpp @@ -42,8 +42,8 @@ Dict::WordList QuackleIO::DictImplementation::query(const QString &query, int fl if (flags & Dict::Querier::NoRequireAllLetters) anagramFlags |= Quackle::Generator::NoRequireAllLetters; - QRegExp wildcardRegexp("[\\*/]"); - if (wildcardRegexp.indexIn(modifiedQuery) >= 0) + QRegularExpression wildcardRegexp("[\\*/]"); + if (wildcardRegexp.match(modifiedQuery).hasMatch()) { if (!(flags & Dict::Querier::NoRequireAllLetters)) anagramFlags |= Quackle::Generator::AddAnyLetters; -- cgit v1.2.3