Merge pull request #13161 from oltolm/fix_qt6_warnings

dolphinQt: fix Qt6 deprecation warnings
This commit is contained in:
JMC47
2025-09-28 14:02:56 -04:00
committed by GitHub
12 changed files with 94 additions and 0 deletions

View File

@@ -935,7 +935,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)
{