mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Use qt5 connect() syntax
This commit is contained in:
committed by
sledgehammer999
parent
b396ca771d
commit
0c988a5fd4
@@ -40,8 +40,9 @@ SpeedLimitDialog::SpeedLimitDialog(QWidget *parent)
|
||||
qDebug("Bandwidth allocation dialog creation");
|
||||
|
||||
// Connect to slots
|
||||
connect(m_ui->bandwidthSlider, SIGNAL(valueChanged(int)), this, SLOT(updateSpinValue(int)));
|
||||
connect(m_ui->spinBandwidth, SIGNAL(valueChanged(int)), this, SLOT(updateSliderValue(int)));
|
||||
connect(m_ui->bandwidthSlider, &QSlider::valueChanged, this, &SpeedLimitDialog::updateSpinValue);
|
||||
connect(m_ui->spinBandwidth, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged)
|
||||
, this, &SpeedLimitDialog::updateSliderValue);
|
||||
|
||||
Utils::Gui::resize(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user