mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-23 22:55:30 +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
|
@ -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