fix Qt6 deprecation warnings

This commit is contained in:
oltolm
2025-07-19 22:08:15 +02:00
parent b25e293cc8
commit 49c72efcd3
12 changed files with 94 additions and 0 deletions
@@ -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)
{