summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/TAS/TASCheckBox.cpp
diff options
context:
space:
mode:
authoroltolm <oleg.tolmatcev@gmail.com>2024-11-01 13:05:14 +0100
committeroltolm <oleg.tolmatcev@gmail.com>2025-07-19 22:08:15 +0200
commit49c72efcd3dd4da70cf9f5fb43ba68cd7db76ce1 (patch)
tree6dc3a953a08c85b289d3f96e565ee51fe1e763e9 /Source/Core/DolphinQt/TAS/TASCheckBox.cpp
parentb25e293cc83477c11894ec733744d1d2e5c6d1b4 (diff)
fix Qt6 deprecation warnings
Diffstat (limited to 'Source/Core/DolphinQt/TAS/TASCheckBox.cpp')
-rw-r--r--Source/Core/DolphinQt/TAS/TASCheckBox.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/TAS/TASCheckBox.cpp b/Source/Core/DolphinQt/TAS/TASCheckBox.cpp
index 3e7f998339..8ea157f865 100644
--- a/Source/Core/DolphinQt/TAS/TASCheckBox.cpp
+++ b/Source/Core/DolphinQt/TAS/TASCheckBox.cpp
@@ -15,7 +15,11 @@ TASCheckBox::TASCheckBox(const QString& text, TASInputWindow* parent)
{
setTristate(true);
+#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
+ connect(this, &TASCheckBox::checkStateChanged, this, &TASCheckBox::OnUIValueChanged);
+#else
connect(this, &TASCheckBox::stateChanged, this, &TASCheckBox::OnUIValueChanged);
+#endif
}
bool TASCheckBox::GetValue() const
@@ -58,7 +62,11 @@ void TASCheckBox::mousePressEvent(QMouseEvent* event)
setCheckState(Qt::PartiallyChecked);
}
+#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
+void TASCheckBox::OnUIValueChanged(Qt::CheckState new_value)
+#else
void TASCheckBox::OnUIValueChanged(int new_value)
+#endif
{
m_state.OnUIValueChanged(new_value);
}