mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
DolphinQt: Use qOverload where applicable
Provides the same behvaior, but in a much more concise manner.
This commit is contained in:
parent
58de3c59ce
commit
19115c84dd
28 changed files with 96 additions and 127 deletions
|
@ -130,15 +130,15 @@ void GameCubePane::ConnectWidgets()
|
|||
{
|
||||
// IPL Settings
|
||||
connect(m_skip_main_menu, &QCheckBox::stateChanged, this, &GameCubePane::SaveSettings);
|
||||
connect(m_language_combo, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
||||
connect(m_language_combo, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
&GameCubePane::SaveSettings);
|
||||
|
||||
// Device Settings
|
||||
for (int i = 0; i < SLOT_COUNT; i++)
|
||||
{
|
||||
connect(m_slot_combos[i], QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
||||
connect(m_slot_combos[i], qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
[this, i] { UpdateButton(i); });
|
||||
connect(m_slot_combos[i], QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
||||
connect(m_slot_combos[i], qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
&GameCubePane::SaveSettings);
|
||||
connect(m_slot_buttons[i], &QPushButton::clicked, [this, i] { OnConfigPressed(i); });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue