summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_graphics.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-06 09:05:52 -0400
committerLioncash <mathew1800@gmail.com>2020-07-06 09:07:21 -0400
commit4f678284e208e3021f4e54e4583d95c4e8fcc2c6 (patch)
treebfc86ed5649c5b534c7d0878912f9d9ee2ac3c2c /src/yuzu/configuration/configure_graphics.cpp
parentbe06b21f7bf23a1a5f9388a54c68309eea888063 (diff)
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.
Diffstat (limited to 'src/yuzu/configuration/configure_graphics.cpp')
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp
index e8c8f5f20..431f51d73 100644
--- a/src/yuzu/configuration/configure_graphics.cpp
+++ b/src/yuzu/configuration/configure_graphics.cpp
@@ -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] {