From 19115c84dd50105bb3a64df7e5017946247dcd46 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 30 Jul 2019 09:35:46 -0400 Subject: DolphinQt: Use qOverload where applicable Provides the same behvaior, but in a much more concise manner. --- Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp') diff --git a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp index 3f829124f8..c616880632 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp @@ -138,13 +138,12 @@ void GeneralWidget::CreateWidgets() void GeneralWidget::ConnectWidgets() { // Video Backend - connect(m_backend_combo, static_cast(&QComboBox::currentIndexChanged), - this, &GeneralWidget::SaveSettings); - connect(m_adapter_combo, static_cast(&QComboBox::currentIndexChanged), - this, [](int index) { - g_Config.iAdapter = index; - Config::SetBaseOrCurrent(Config::GFX_ADAPTER, index); - }); + connect(m_backend_combo, qOverload(&QComboBox::currentIndexChanged), this, + &GeneralWidget::SaveSettings); + connect(m_adapter_combo, qOverload(&QComboBox::currentIndexChanged), this, [](int index) { + g_Config.iAdapter = index; + Config::SetBaseOrCurrent(Config::GFX_ADAPTER, index); + }); } void GeneralWidget::LoadSettings() -- cgit v1.2.3