mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00: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:
parent
b7b8f46832
commit
43e69d3e6a
33 changed files with 101 additions and 141 deletions
|
@ -249,15 +249,14 @@ void GameCubePane::ConnectWidgets()
|
|||
{
|
||||
// IPL Settings
|
||||
connect(m_skip_main_menu, &QCheckBox::stateChanged, this, &GameCubePane::SaveSettings);
|
||||
connect(m_language_combo, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
&GameCubePane::SaveSettings);
|
||||
connect(m_language_combo, &QComboBox::currentIndexChanged, this, &GameCubePane::SaveSettings);
|
||||
|
||||
// Device Settings
|
||||
for (ExpansionInterface::Slot slot : ExpansionInterface::SLOTS)
|
||||
{
|
||||
connect(m_slot_combos[slot], qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
connect(m_slot_combos[slot], &QComboBox::currentIndexChanged, this,
|
||||
[this, slot] { UpdateButton(slot); });
|
||||
connect(m_slot_combos[slot], qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
connect(m_slot_combos[slot], &QComboBox::currentIndexChanged, this,
|
||||
&GameCubePane::SaveSettings);
|
||||
connect(m_slot_buttons[slot], &QPushButton::clicked, [this, slot] { OnConfigPressed(slot); });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue