mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
configure_graphics: Make use of qOverload in signals/slots
While we're in the same area, we can make use of qOverload to tidy up some function pointer casts.
This commit is contained in:
parent
be06b21f7b
commit
4f678284e2
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent)
|
|||
|
||||
SetConfiguration();
|
||||
|
||||
connect(ui->api, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
|
||||
connect(ui->api, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
[this] { UpdateDeviceComboBox(); });
|
||||
connect(ui->device, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this,
|
||||
connect(ui->device, qOverload<int>(&QComboBox::activated), this,
|
||||
[this](int device) { UpdateDeviceSelection(device); });
|
||||
|
||||
connect(ui->bg_button, &QPushButton::clicked, this, [this] {
|
||||
|
|
Loading…
Reference in a new issue