summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-22 21:07:34 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-22 21:07:34 +0200
commitfc1bb93b01cea583bfae3743f973796a37cdeb6b (patch)
treefbc063a58f6030862d59cfbd0a6dc11266250392
parentconfig: Read the Network category (diff)
downloadyuzu-fc1bb93b01cea583bfae3743f973796a37cdeb6b.tar
yuzu-fc1bb93b01cea583bfae3743f973796a37cdeb6b.tar.gz
yuzu-fc1bb93b01cea583bfae3743f973796a37cdeb6b.tar.bz2
yuzu-fc1bb93b01cea583bfae3743f973796a37cdeb6b.tar.lz
yuzu-fc1bb93b01cea583bfae3743f973796a37cdeb6b.tar.xz
yuzu-fc1bb93b01cea583bfae3743f973796a37cdeb6b.tar.zst
yuzu-fc1bb93b01cea583bfae3743f973796a37cdeb6b.zip
-rw-r--r--src/yuzu/configuration/shared_widget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/configuration/shared_widget.cpp b/src/yuzu/configuration/shared_widget.cpp
index cf33bce2b..74985129b 100644
--- a/src/yuzu/configuration/shared_widget.cpp
+++ b/src/yuzu/configuration/shared_widget.cpp
@@ -23,7 +23,7 @@
#include <QLineEdit>
#include <QObject>
#include <QPushButton>
-#include <QRegExp>
+#include <QRegularExpression>
#include <QSizePolicy>
#include <QSlider>
#include <QSpinBox>
@@ -295,8 +295,8 @@ QWidget* Widget::CreateHexEdit(std::function<std::string()>& 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());