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/ControllersWindow.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Source/Core/DolphinQt/Config/ControllersWindow.cpp') diff --git a/Source/Core/DolphinQt/Config/ControllersWindow.cpp b/Source/Core/DolphinQt/Config/ControllersWindow.cpp index 65ab32cbe6..2f3d03ed43 100644 --- a/Source/Core/DolphinQt/Config/ControllersWindow.cpp +++ b/Source/Core/DolphinQt/Config/ControllersWindow.cpp @@ -260,20 +260,16 @@ void ControllersWindow::ConnectWidgets() for (size_t i = 0; i < m_wiimote_groups.size(); i++) { - connect(m_wiimote_boxes[i], - static_cast(&QComboBox::currentIndexChanged), this, + connect(m_wiimote_boxes[i], qOverload(&QComboBox::currentIndexChanged), this, &ControllersWindow::SaveSettings); - connect(m_wiimote_boxes[i], - static_cast(&QComboBox::currentIndexChanged), this, + connect(m_wiimote_boxes[i], qOverload(&QComboBox::currentIndexChanged), this, &ControllersWindow::OnWiimoteModeChanged); connect(m_wiimote_buttons[i], &QPushButton::clicked, this, &ControllersWindow::OnWiimoteConfigure); - connect(m_gc_controller_boxes[i], - static_cast(&QComboBox::currentIndexChanged), this, + connect(m_gc_controller_boxes[i], qOverload(&QComboBox::currentIndexChanged), this, &ControllersWindow::SaveSettings); - connect(m_gc_controller_boxes[i], - static_cast(&QComboBox::currentIndexChanged), this, + connect(m_gc_controller_boxes[i], qOverload(&QComboBox::currentIndexChanged), this, &ControllersWindow::OnGCTypeChanged); connect(m_gc_buttons[i], &QPushButton::clicked, this, &ControllersWindow::OnGCPadConfigure); } -- cgit v1.2.3