summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-08 22:28:10 +0200
committerGitHub <noreply@github.com>2020-07-08 22:28:10 +0200
commit9c2773409a139a7b5743e265deeeddb0d371994b (patch)
tree52932be812cd60a770f8b3e79ba13e2183d5edc5 /src
parentMerge pull request #4276 from ameerj/master (diff)
parentconfigure_graphics: Make use of qOverload in signals/slots (diff)
downloadyuzu-9c2773409a139a7b5743e265deeeddb0d371994b.tar
yuzu-9c2773409a139a7b5743e265deeeddb0d371994b.tar.gz
yuzu-9c2773409a139a7b5743e265deeeddb0d371994b.tar.bz2
yuzu-9c2773409a139a7b5743e265deeeddb0d371994b.tar.lz
yuzu-9c2773409a139a7b5743e265deeeddb0d371994b.tar.xz
yuzu-9c2773409a139a7b5743e265deeeddb0d371994b.tar.zst
yuzu-9c2773409a139a7b5743e265deeeddb0d371994b.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp
index 304625cd7..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] {
@@ -112,7 +112,7 @@ void ConfigureGraphics::UpdateDeviceComboBox() {
enabled = false;
break;
case Settings::RendererBackend::Vulkan:
- for (const auto device : vulkan_devices) {
+ for (const auto& device : vulkan_devices) {
ui->device->addItem(device);
}
ui->device->setCurrentIndex(vulkan_device);