From fc1bb93b01cea583bfae3743f973796a37cdeb6b Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Sat, 22 Jul 2023 15:07:34 -0400 Subject: [PATCH] shared_widget: Use QRegularExpression --- src/yuzu/configuration/shared_widget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/yuzu/configuration/shared_widget.cpp b/src/yuzu/configuration/shared_widget.cpp index cf33bce2bd..74985129b7 100644 --- a/src/yuzu/configuration/shared_widget.cpp +++ b/src/yuzu/configuration/shared_widget.cpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include @@ -295,8 +295,8 @@ QWidget* Widget::CreateHexEdit(std::function& serializer, return QString::fromStdString(fmt::format("{:08x}", std::stoul(input))); }; - QRegExpValidator* regex = - new QRegExpValidator{QRegExp{QStringLiteral("^[0-9a-fA-F]{0,8}$")}, line_edit}; + QRegularExpressionValidator* regex = new QRegularExpressionValidator( + QRegularExpression{QStringLiteral("^[0-9a-fA-F]{0,8}$")}, line_edit); const QString default_val = to_hex(setting.ToString());