mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Migrate away from obsoleted functions
This commit is contained in:
parent
ac3ab2432a
commit
2e37ea608c
1 changed files with 5 additions and 0 deletions
|
@ -69,8 +69,13 @@ UpDownRatioDialog::UpDownRatioDialog(bool useDefault, qreal initialRatioValue,
|
||||||
m_ui->timeSpinBox->setMaximum(maxTimeValue);
|
m_ui->timeSpinBox->setMaximum(maxTimeValue);
|
||||||
m_ui->timeSpinBox->setValue(initialTimeValue);
|
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<int>(&QButtonGroup::buttonClicked)
|
connect(m_ui->buttonGroup, qOverload<int>(&QButtonGroup::buttonClicked)
|
||||||
, this, &UpDownRatioDialog::handleRatioTypeChanged);
|
, this, &UpDownRatioDialog::handleRatioTypeChanged);
|
||||||
|
#endif
|
||||||
connect(m_ui->checkMaxRatio, &QCheckBox::toggled, this, &UpDownRatioDialog::enableRatioSpin);
|
connect(m_ui->checkMaxRatio, &QCheckBox::toggled, this, &UpDownRatioDialog::enableRatioSpin);
|
||||||
connect(m_ui->checkMaxTime, &QCheckBox::toggled, this, &UpDownRatioDialog::enableTimeSpin);
|
connect(m_ui->checkMaxTime, &QCheckBox::toggled, this, &UpDownRatioDialog::enableTimeSpin);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue