diff --git a/src/lime_qt/configuration/configure_camera.cpp b/src/lime_qt/configuration/configure_camera.cpp index 79a54e7b0..d0dbd7c65 100644 --- a/src/lime_qt/configuration/configure_camera.cpp +++ b/src/lime_qt/configuration/configure_camera.cpp @@ -1,4 +1,4 @@ -// Copyright 2018 Citra Emulator Project +// Copyright Citra Emulator Project / Lime3DS Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. @@ -86,7 +86,7 @@ void ConfigureCamera::ConnectEvents() { }); connect(ui->toolButton, &QToolButton::clicked, this, &ConfigureCamera::OnToolButtonClicked); connect(ui->preview_button, &QPushButton::clicked, this, [this] { StartPreviewing(); }); - connect(ui->prompt_before_load, &QCheckBox::stateChanged, this, [this](int state) { + connect(ui->prompt_before_load, &QCheckBox::checkStateChanged, this, [this](int state) { ui->camera_file->setDisabled(state == Qt::Checked); ui->toolButton->setDisabled(state == Qt::Checked); if (state == Qt::Checked) { diff --git a/src/lime_qt/configuration/configure_cheats.cpp b/src/lime_qt/configuration/configure_cheats.cpp index 1138dae2b..6e4b0d9a5 100644 --- a/src/lime_qt/configuration/configure_cheats.cpp +++ b/src/lime_qt/configuration/configure_cheats.cpp @@ -1,4 +1,4 @@ -// Copyright 2018 Citra Emulator Project +// Copyright Citra Emulator Project / Lime3DS Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. @@ -59,7 +59,7 @@ void ConfigureCheats::LoadCheats() { i, 2, new QTableWidgetItem(QString::fromStdString(cheats[i]->GetType()))); enabled->setProperty("row", static_cast(i)); - connect(enabled, &QCheckBox::stateChanged, this, &ConfigureCheats::OnCheckChanged); + connect(enabled, &QCheckBox::checkStateChanged, this, &ConfigureCheats::OnCheckChanged); } } diff --git a/src/lime_qt/configuration/configure_layout.cpp b/src/lime_qt/configuration/configure_layout.cpp index e58597376..e7a269bb6 100644 --- a/src/lime_qt/configuration/configure_layout.cpp +++ b/src/lime_qt/configuration/configure_layout.cpp @@ -1,4 +1,4 @@ -// Copyright 2019 Citra Emulator Project +// Copyright Citra Emulator Project / Lime3DS Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. @@ -48,24 +48,20 @@ ConfigureLayout::ConfigureLayout(QWidget* parent) }); ui->screen_top_leftright_padding->setEnabled(Settings::values.screen_top_stretch.GetValue()); - connect(ui->screen_top_stretch, static_cast(&QCheckBox::stateChanged), - this, + connect(ui->screen_top_stretch, &QCheckBox::checkStateChanged, this, [this](bool checkState) { ui->screen_top_leftright_padding->setEnabled(checkState); }); ui->screen_top_topbottom_padding->setEnabled(Settings::values.screen_top_stretch.GetValue()); - connect(ui->screen_top_stretch, static_cast(&QCheckBox::stateChanged), - this, + connect(ui->screen_top_stretch, &QCheckBox::checkStateChanged, this, [this](bool checkState) { ui->screen_top_topbottom_padding->setEnabled(checkState); }); ui->screen_bottom_leftright_padding->setEnabled( Settings::values.screen_bottom_topbottom_padding.GetValue()); connect( - ui->screen_bottom_stretch, static_cast(&QCheckBox::stateChanged), - this, + ui->screen_bottom_stretch, &QCheckBox::checkStateChanged, this, [this](bool checkState) { ui->screen_bottom_leftright_padding->setEnabled(checkState); }); ui->screen_bottom_topbottom_padding->setEnabled( Settings::values.screen_bottom_topbottom_padding.GetValue()); connect( - ui->screen_bottom_stretch, static_cast(&QCheckBox::stateChanged), - this, + ui->screen_bottom_stretch, &QCheckBox::checkStateChanged, this, [this](bool checkState) { ui->screen_bottom_topbottom_padding->setEnabled(checkState); }); connect(ui->bg_button, &QPushButton::clicked, this, [this] { diff --git a/src/lime_qt/debugger/ipc/recorder.cpp b/src/lime_qt/debugger/ipc/recorder.cpp index 1ca4ab9e0..0bbdc6eb9 100644 --- a/src/lime_qt/debugger/ipc/recorder.cpp +++ b/src/lime_qt/debugger/ipc/recorder.cpp @@ -1,4 +1,4 @@ -// Copyright 2019 Citra Emulator Project +// Copyright Citra Emulator Project / Lime3DS Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. @@ -22,7 +22,7 @@ IPCRecorderWidget::IPCRecorderWidget(Core::System& system_, QWidget* parent) ui->setupUi(this); qRegisterMetaType(); - connect(ui->enabled, &QCheckBox::stateChanged, this, + connect(ui->enabled, &QCheckBox::checkStateChanged, this, [this](int new_state) { SetEnabled(new_state == Qt::Checked); }); connect(ui->clearButton, &QPushButton::clicked, this, &IPCRecorderWidget::Clear); connect(ui->filter, &QLineEdit::textChanged, this, &IPCRecorderWidget::ApplyFilterToAll);