summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerman <german@thesoftwareartisans.com>2021-01-11 02:52:21 +0100
committergerman <german@thesoftwareartisans.com>2021-01-13 18:02:28 +0100
commit06cf705501a6b8ea86aaaca46728e202eb088e94 (patch)
treeed4749195a57ee37331fd26458198c6dfd1eb7ae
parentMerge pull request #5312 from german77/overclockenabled (diff)
downloadyuzu-06cf705501a6b8ea86aaaca46728e202eb088e94.tar
yuzu-06cf705501a6b8ea86aaaca46728e202eb088e94.tar.gz
yuzu-06cf705501a6b8ea86aaaca46728e202eb088e94.tar.bz2
yuzu-06cf705501a6b8ea86aaaca46728e202eb088e94.tar.lz
yuzu-06cf705501a6b8ea86aaaca46728e202eb088e94.tar.xz
yuzu-06cf705501a6b8ea86aaaca46728e202eb088e94.tar.zst
yuzu-06cf705501a6b8ea86aaaca46728e202eb088e94.zip
-rw-r--r--src/yuzu/configuration/configure_motion_touch.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_motion_touch.cpp b/src/yuzu/configuration/configure_motion_touch.cpp
index eb8eacbf9..9543f086d 100644
--- a/src/yuzu/configuration/configure_motion_touch.cpp
+++ b/src/yuzu/configuration/configure_motion_touch.cpp
@@ -185,8 +185,9 @@ void ConfigureMotionTouch::ConnectEvents() {
}
void ConfigureMotionTouch::OnUDPAddServer() {
- QRegExp re(tr(R"re(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4]"
- "[0-9]|[01]?[0-9][0-9]?)$)re")); // a valid ip address
+ // Validator for IP address
+ QRegExp re(QStringLiteral(
+ R"re(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$)re"));
bool ok;
QString port_text = ui->udp_port->text();
QString server_text = ui->udp_server->text();