From ccd61d01349b1bc4b374d858824ebcceac38a9c2 Mon Sep 17 00:00:00 2001 From: Cobalt <60624944+cobalt2727@users.noreply.github.com> Date: Sun, 15 Mar 2026 07:46:50 -0500 Subject: [PATCH] qt: fix compilation on older QT6 (#1886) * fix compilation on older QT6 * fix indent my C++ is very rusty * fix indents again * Fixed formatting --------- Co-authored-by: OpenSauce04 --- src/citra_qt/configuration/configure_motion_touch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/citra_qt/configuration/configure_motion_touch.cpp b/src/citra_qt/configuration/configure_motion_touch.cpp index 5b9b79bd7..4d8e52a30 100644 --- a/src/citra_qt/configuration/configure_motion_touch.cpp +++ b/src/citra_qt/configuration/configure_motion_touch.cpp @@ -230,8 +230,13 @@ void ConfigureMotionTouch::ConnectEvents() { poll_timer->start(200); // Check for new inputs every 200ms } }); +#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0) + connect(ui->touchpad_checkbox, &QCheckBox::StateChanged, this, [this]() { UpdateUiDisplay(); }); +#else connect(ui->touchpad_checkbox, &QCheckBox::checkStateChanged, this, [this]() { UpdateUiDisplay(); }); +#endif + connect(ui->touchpad_config_btn, &QPushButton::clicked, this, [this]() { if (QMessageBox::information(this, tr("Information"), tr("After pressing OK, tap the touchpad on the controller "