diff options
| author | oltolm <oleg.tolmatcev@gmail.com> | 2024-11-01 13:05:14 +0100 |
|---|---|---|
| committer | oltolm <oleg.tolmatcev@gmail.com> | 2025-07-19 22:08:15 +0200 |
| commit | 49c72efcd3dd4da70cf9f5fb43ba68cd7db76ce1 (patch) | |
| tree | 6dc3a953a08c85b289d3f96e565ee51fe1e763e9 /Source/Core/DolphinQt/NKitWarningDialog.cpp | |
| parent | b25e293cc83477c11894ec733744d1d2e5c6d1b4 (diff) | |
fix Qt6 deprecation warnings
Diffstat (limited to 'Source/Core/DolphinQt/NKitWarningDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/NKitWarningDialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/NKitWarningDialog.cpp b/Source/Core/DolphinQt/NKitWarningDialog.cpp index 5bea5e69a4..0b16e4f0aa 100644 --- a/Source/Core/DolphinQt/NKitWarningDialog.cpp +++ b/Source/Core/DolphinQt/NKitWarningDialog.cpp @@ -77,8 +77,13 @@ NKitWarningDialog::NKitWarningDialog(QWidget* parent) : QDialog(parent) connect(cancel, &QPushButton::clicked, this, &QDialog::reject); ok->setEnabled(false); +#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0) + connect(checkbox_accept, &QCheckBox::checkStateChanged, + [ok](Qt::CheckState state) { ok->setEnabled(state == Qt::Checked); }); +#else connect(checkbox_accept, &QCheckBox::stateChanged, [ok](int state) { ok->setEnabled(state == Qt::Checked); }); +#endif connect(this, &QDialog::accepted, [checkbox_skip] { Config::SetBase(Config::MAIN_SKIP_NKIT_WARNING, checkbox_skip->isChecked()); |
