diff --git a/src/citra_qt/configuration/configure_camera.cpp b/src/citra_qt/configuration/configure_camera.cpp index 08368fe5c..d8d2d96af 100644 --- a/src/citra_qt/configuration/configure_camera.cpp +++ b/src/citra_qt/configuration/configure_camera.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include "citra_qt/configuration/configure_camera.h" #include "common/settings.h" #include "core/frontend/camera/factory.h" @@ -86,7 +87,11 @@ void ConfigureCamera::ConnectEvents() { }); connect(ui->toolButton, &QToolButton::clicked, this, &ConfigureCamera::OnToolButtonClicked); connect(ui->preview_button, &QPushButton::clicked, this, [this] { StartPreviewing(); }); +#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0) connect(ui->prompt_before_load, &QCheckBox::stateChanged, this, [this](int state) { +#else + connect(ui->prompt_before_load, &QCheckBox::checkStateChanged, this, [this](int state) { +#endif ui->camera_file->setDisabled(state == Qt::Checked); ui->toolButton->setDisabled(state == Qt::Checked); if (state == Qt::Checked) { diff --git a/src/citra_qt/configuration/configure_cheats.cpp b/src/citra_qt/configuration/configure_cheats.cpp index aa67f7440..fa9d57bef 100644 --- a/src/citra_qt/configuration/configure_cheats.cpp +++ b/src/citra_qt/configuration/configure_cheats.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include "configure_cheats.h" #include "core/cheats/cheat_base.h" #include "core/cheats/cheats.h" @@ -60,7 +61,11 @@ void ConfigureCheats::LoadCheats() { i, 2, new QTableWidgetItem(QString::fromStdString(cheats[i]->GetType()))); enabled->setProperty("row", static_cast(i)); +#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0) connect(enabled, &QCheckBox::stateChanged, this, &ConfigureCheats::OnCheckChanged); +#else + connect(enabled, &QCheckBox::checkStateChanged, this, &ConfigureCheats::OnCheckChanged); +#endif } } diff --git a/src/citra_qt/debugger/ipc/recorder.cpp b/src/citra_qt/debugger/ipc/recorder.cpp index ad588d91c..3a9bc8a95 100644 --- a/src/citra_qt/debugger/ipc/recorder.cpp +++ b/src/citra_qt/debugger/ipc/recorder.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include "citra_qt/debugger/ipc/record_dialog.h" #include "citra_qt/debugger/ipc/recorder.h" @@ -22,8 +23,13 @@ IPCRecorderWidget::IPCRecorderWidget(Core::System& system_, QWidget* parent) ui->setupUi(this); qRegisterMetaType(); +#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0) connect(ui->enabled, &QCheckBox::stateChanged, this, [this](int new_state) { SetEnabled(new_state == Qt::Checked); }); +#else + connect(ui->enabled, &QCheckBox::checkStateChanged, this, + [this](int new_state) { SetEnabled(new_state == Qt::Checked); }); +#endif connect(ui->clearButton, &QPushButton::clicked, this, &IPCRecorderWidget::Clear); connect(ui->filter, &QLineEdit::textChanged, this, &IPCRecorderWidget::ApplyFilterToAll); connect(ui->main, &QTreeWidget::itemDoubleClicked, this, &IPCRecorderWidget::OpenRecordDialog);