From 9474c02aec1c41eef753d56f549dd30f917f949d Mon Sep 17 00:00:00 2001 From: cold-brewed <47337035+cold-brewed@users.noreply.github.com> Date: Thu, 10 Aug 2023 10:40:19 -0400 Subject: [PATCH] qt: use QRegularExpression instead of QRegExp for qt6 compatibility (#3536) Co-authored-by: cold-brewed --- src/qt/qt_platform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt/qt_platform.cpp b/src/qt/qt_platform.cpp index cd43c6730..bddcd295c 100644 --- a/src/qt/qt_platform.cpp +++ b/src/qt/qt_platform.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -712,7 +713,7 @@ plat_get_cpu_string(char *outbuf, uint8_t len) { if (line.isNull()) { break; } - if(line.contains(QRegExp("model name.*:"))) { + if(QRegularExpression("model name.*:").match(line).hasMatch()) { auto list = line.split(": "); if(!list.last().isEmpty()) { cpu_string = list.last();