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/FIFO/FIFOPlayerWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp') diff --git a/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp b/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp index 7e1ccb6075..ae351792fe 100644 --- a/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp +++ b/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp @@ -169,14 +169,14 @@ void FIFOPlayerWindow::ConnectWidgets() connect(m_button_box, &QDialogButtonBox::rejected, this, &FIFOPlayerWindow::reject); connect(m_early_memory_updates, &QCheckBox::toggled, this, &FIFOPlayerWindow::OnEarlyMemoryUpdatesChanged); - connect(m_frame_range_from, static_cast(&QSpinBox::valueChanged), this, + connect(m_frame_range_from, qOverload(&QSpinBox::valueChanged), this, &FIFOPlayerWindow::OnLimitsChanged); - connect(m_frame_range_to, static_cast(&QSpinBox::valueChanged), this, + connect(m_frame_range_to, qOverload(&QSpinBox::valueChanged), this, &FIFOPlayerWindow::OnLimitsChanged); - connect(m_object_range_from, static_cast(&QSpinBox::valueChanged), this, + connect(m_object_range_from, qOverload(&QSpinBox::valueChanged), this, &FIFOPlayerWindow::OnLimitsChanged); - connect(m_object_range_to, static_cast(&QSpinBox::valueChanged), this, + connect(m_object_range_to, qOverload(&QSpinBox::valueChanged), this, &FIFOPlayerWindow::OnLimitsChanged); } -- cgit v1.2.3