fix Qt6 deprecation warnings

This commit is contained in:
oltolm
2024-11-01 13:05:14 +01:00
parent b25e293cc8
commit 49c72efcd3
12 changed files with 94 additions and 0 deletions

View File

@@ -884,7 +884,11 @@ std::vector<u8> MemoryViewWidget::ConvertTextToBytes(Type type, QStringView inpu
// Confirm it is only hex bytes
const QRegularExpression is_hex(QStringLiteral("^([0-9A-F]{2})*$"),
QRegularExpression::CaseInsensitiveOption);
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
const QRegularExpressionMatch match = is_hex.matchView(input_text);
#else
const QRegularExpressionMatch match = is_hex.match(input_text);
#endif
good = match.hasMatch();
if (good)
{