diff options
author | John Fultz <jfultz@wolfram.com> | 2023-07-15 21:03:02 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2023-07-16 09:02:22 -0500 |
commit | 97b2ebe1b0d2bafb9d870bc9422ee721e08a6657 (patch) | |
tree | cfc30f40da4fcc8ba25db0b7d813bf48c94903a4 /quackleio/dictimplementation.cpp | |
parent | 07c06961b45eaf6ba0a53bcef8761798a5b55158 (diff) |
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.
Diffstat (limited to 'quackleio/dictimplementation.cpp')
-rw-r--r-- | quackleio/dictimplementation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |