mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
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.
This commit is contained in:
@ -307,7 +307,7 @@ void MemoryWidget::ConnectWidgets()
|
||||
connect(m_search_offset, &QLineEdit::textChanged, this, &MemoryWidget::OnSearchAddress);
|
||||
connect(m_data_edit, &QLineEdit::textChanged, this, &MemoryWidget::ValidateAndPreviewInputValue);
|
||||
|
||||
connect(m_input_combo, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
connect(m_input_combo, &QComboBox::currentIndexChanged, this,
|
||||
&MemoryWidget::ValidateAndPreviewInputValue);
|
||||
connect(m_set_value, &QPushButton::clicked, this, &MemoryWidget::OnSetValue);
|
||||
|
||||
@ -321,8 +321,7 @@ void MemoryWidget::ConnectWidgets()
|
||||
}
|
||||
for (auto* combo : {m_display_combo, m_align_combo, m_row_length_combo})
|
||||
{
|
||||
connect(combo, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
&MemoryWidget::OnDisplayChanged);
|
||||
connect(combo, &QComboBox::currentIndexChanged, this, &MemoryWidget::OnDisplayChanged);
|
||||
}
|
||||
|
||||
connect(m_dual_check, &QCheckBox::toggled, this, &MemoryWidget::OnDisplayChanged);
|
||||
|
@ -207,7 +207,7 @@ void NetworkWidget::CreateWidgets()
|
||||
|
||||
void NetworkWidget::ConnectWidgets()
|
||||
{
|
||||
connect(m_dump_format_combo, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
||||
connect(m_dump_format_combo, &QComboBox::currentIndexChanged, this,
|
||||
&NetworkWidget::OnDumpFormatComboChanged);
|
||||
connect(m_dump_ssl_read_checkbox, &QCheckBox::stateChanged, [](int state) {
|
||||
Config::SetBaseOrCurrent(Config::MAIN_NETWORK_SSL_DUMP_READ, state == Qt::Checked);
|
||||
|
Reference in New Issue
Block a user