From 2e37ea608c2dd8156776334b23be5d4f8f66ca53 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 25 Sep 2020 14:44:54 +0800 Subject: [PATCH] Migrate away from obsoleted functions --- src/gui/updownratiodialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/updownratiodialog.cpp b/src/gui/updownratiodialog.cpp index 39f288c34..fad1f4fcc 100644 --- a/src/gui/updownratiodialog.cpp +++ b/src/gui/updownratiodialog.cpp @@ -69,8 +69,13 @@ UpDownRatioDialog::UpDownRatioDialog(bool useDefault, qreal initialRatioValue, m_ui->timeSpinBox->setMaximum(maxTimeValue); m_ui->timeSpinBox->setValue(initialTimeValue); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) + connect(m_ui->buttonGroup, &QButtonGroup::idClicked + , this, &UpDownRatioDialog::handleRatioTypeChanged); +#else connect(m_ui->buttonGroup, qOverload(&QButtonGroup::buttonClicked) , this, &UpDownRatioDialog::handleRatioTypeChanged); +#endif connect(m_ui->checkMaxRatio, &QCheckBox::toggled, this, &UpDownRatioDialog::enableRatioSpin); connect(m_ui->checkMaxTime, &QCheckBox::toggled, this, &UpDownRatioDialog::enableTimeSpin);