summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2023-11-04 14:01:39 -0700
committerDentomologist <dentomologist@gmail.com>2023-11-04 14:14:14 -0700
commit43e69d3e6ab699d2ae09dab377e11651e799f995 (patch)
tree89b892c7b16ae734c8c69ff65c8eb2c206d1a919 /Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp
parentb7b8f468321dd102809b32cf55a69499c3225cf6 (diff)
DolphinQt: Remove unnecessary qOverloads
qOverload is used to disambiguate pointers to overloaded functions, but most of the usages in the code base were with non-overloaded functions.
Diffstat (limited to 'Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp
index 26487443e7..6e470c54a0 100644
--- a/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp
+++ b/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp
@@ -206,18 +206,16 @@ void NetPlaySetupDialog::CreateMainLayout()
void NetPlaySetupDialog::ConnectWidgets()
{
- connect(m_connection_type, qOverload<int>(&QComboBox::currentIndexChanged), this,
+ connect(m_connection_type, &QComboBox::currentIndexChanged, this,
&NetPlaySetupDialog::OnConnectionTypeChanged);
connect(m_nickname_edit, &QLineEdit::textChanged, this, &NetPlaySetupDialog::SaveSettings);
// Connect widget
connect(m_ip_edit, &QLineEdit::textChanged, this, &NetPlaySetupDialog::SaveSettings);
- connect(m_connect_port_box, qOverload<int>(&QSpinBox::valueChanged), this,
- &NetPlaySetupDialog::SaveSettings);
+ connect(m_connect_port_box, &QSpinBox::valueChanged, this, &NetPlaySetupDialog::SaveSettings);
// Host widget
- connect(m_host_port_box, qOverload<int>(&QSpinBox::valueChanged), this,
- &NetPlaySetupDialog::SaveSettings);
- connect(m_host_games, qOverload<int>(&QListWidget::currentRowChanged), [this](int index) {
+ connect(m_host_port_box, &QSpinBox::valueChanged, this, &NetPlaySetupDialog::SaveSettings);
+ connect(m_host_games, &QListWidget::currentRowChanged, [this](int index) {
Settings::GetQSettings().setValue(QStringLiteral("netplay/hostgame"),
m_host_games->item(index)->text());
});
@@ -230,7 +228,7 @@ void NetPlaySetupDialog::ConnectWidgets()
m_host_chunked_upload_limit_box->setEnabled(value);
SaveSettings();
});
- connect(m_host_chunked_upload_limit_box, qOverload<int>(&QSpinBox::valueChanged), this,
+ connect(m_host_chunked_upload_limit_box, &QSpinBox::valueChanged, this,
&NetPlaySetupDialog::SaveSettings);
connect(m_host_server_browser, &QCheckBox::toggled, this, &NetPlaySetupDialog::SaveSettings);