Connect numerous QPushButtons to use clicked signal instead of pressed. This unifies UI behaviour more.

This commit is contained in:
Silent
2019-07-24 00:18:58 +02:00
parent 29ba53f6c3
commit 3529dfd691
23 changed files with 70 additions and 70 deletions

View File

@ -142,7 +142,7 @@ void GameCubePane::ConnectWidgets()
[this, i] { UpdateButton(i); });
connect(m_slot_combos[i], QOverload<int>::of(&QComboBox::currentIndexChanged), this,
&GameCubePane::SaveSettings);
connect(m_slot_buttons[i], &QPushButton::pressed, this, [this, i] { OnConfigPressed(i); });
connect(m_slot_buttons[i], &QPushButton::clicked, [this, i] { OnConfigPressed(i); });
}
}