summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/TAS/TASCheckBox.cpp
diff options
context:
space:
mode:
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);
}