diff options
| author | oltolm <oleg.tolmatcev@gmail.com> | 2024-11-01 13:05:14 +0100 |
|---|---|---|
| committer | oltolm <oleg.tolmatcev@gmail.com> | 2025-07-19 22:08:15 +0200 |
| commit | 49c72efcd3dd4da70cf9f5fb43ba68cd7db76ce1 (patch) | |
| tree | 6dc3a953a08c85b289d3f96e565ee51fe1e763e9 /Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | |
| parent | b25e293cc83477c11894ec733744d1d2e5c6d1b4 (diff) | |
fix Qt6 deprecation warnings
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp index ef39421294..ca94fafa21 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp @@ -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) { |
