mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +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
|
@ -204,14 +204,13 @@ void RiivolutionBootWidget::MakeGUIForParsedFile(std::string path, std::string r
|
|||
if (option.m_selected_choice <= option.m_choices.size())
|
||||
selection->setCurrentIndex(static_cast<int>(option.m_selected_choice));
|
||||
|
||||
connect(selection, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
[this, selection](int idx) {
|
||||
const auto gui_index = selection->currentData().value<GuiRiivolutionPatchIndex>();
|
||||
auto& selected_disc = m_discs[gui_index.m_disc_index].disc;
|
||||
auto& selected_section = selected_disc.m_sections[gui_index.m_section_index];
|
||||
auto& selected_option = selected_section.m_options[gui_index.m_option_index];
|
||||
selected_option.m_selected_choice = static_cast<u32>(gui_index.m_choice_index);
|
||||
});
|
||||
connect(selection, &QComboBox::currentIndexChanged, this, [this, selection](int idx) {
|
||||
const auto gui_index = selection->currentData().value<GuiRiivolutionPatchIndex>();
|
||||
auto& selected_disc = m_discs[gui_index.m_disc_index].disc;
|
||||
auto& selected_section = selected_disc.m_sections[gui_index.m_section_index];
|
||||
auto& selected_option = selected_section.m_options[gui_index.m_option_index];
|
||||
selected_option.m_selected_choice = static_cast<u32>(gui_index.m_choice_index);
|
||||
});
|
||||
|
||||
grid_layout->addWidget(label, row, 0, 1, 1);
|
||||
grid_layout->addWidget(selection, row, 1, 1, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue