yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

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:
Lioncash 2020-07-06 09:05:52 -04:00
parent be06b21f7b
commit 4f678284e2
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent)
SetConfiguration(); SetConfiguration();
connect(ui->api, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, connect(ui->api, qOverload<int>(&QComboBox::currentIndexChanged), this,
[this] { UpdateDeviceComboBox(); }); [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); }); [this](int device) { UpdateDeviceSelection(device); });
connect(ui->bg_button, &QPushButton::clicked, this, [this] { connect(ui->bg_button, &QPushButton::clicked, this, [this] {