diff options
| author | 2020-07-06 09:05:52 -0400 | |
|---|---|---|
| committer | 2020-07-06 09:07:21 -0400 | |
| commit | 4f678284e208e3021f4e54e4583d95c4e8fcc2c6 (patch) | |
| tree | bfc86ed5649c5b534c7d0878912f9d9ee2ac3c2c /src | |
| parent | configure_graphics: Prevent unnecessary string copies in UpdateDeviceComboBox() (diff) | |
| download | yuzu-4f678284e208e3021f4e54e4583d95c4e8fcc2c6.tar.gz yuzu-4f678284e208e3021f4e54e4583d95c4e8fcc2c6.tar.xz yuzu-4f678284e208e3021f4e54e4583d95c4e8fcc2c6.zip | |
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')
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.cpp | 4 |
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) | |||
| 28 | 28 | ||
| 29 | SetConfiguration(); | 29 | SetConfiguration(); |
| 30 | 30 | ||
| 31 | connect(ui->api, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, | 31 | connect(ui->api, qOverload<int>(&QComboBox::currentIndexChanged), this, |
| 32 | [this] { UpdateDeviceComboBox(); }); | 32 | [this] { UpdateDeviceComboBox(); }); |
| 33 | connect(ui->device, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, | 33 | connect(ui->device, qOverload<int>(&QComboBox::activated), this, |
| 34 | [this](int device) { UpdateDeviceSelection(device); }); | 34 | [this](int device) { UpdateDeviceSelection(device); }); |
| 35 | 35 | ||
| 36 | connect(ui->bg_button, &QPushButton::clicked, this, [this] { | 36 | connect(ui->bg_button, &QPushButton::clicked, this, [this] { |