Qt/Mapping: Fix "Options" entries disappearing
This commit is contained in:
parent
77f6e50493
commit
308d4bb670
|
@ -41,17 +41,8 @@ void GCPadEmu::CreateMainLayout()
|
||||||
CreateGroupBox(tr("Triggers"), Pad::GetGroup(GetPort(), PadGroup::Triggers)));
|
CreateGroupBox(tr("Triggers"), Pad::GetGroup(GetPort(), PadGroup::Triggers)));
|
||||||
hbox_layout->addWidget(CreateGroupBox(tr("Rumble"), Pad::GetGroup(GetPort(), PadGroup::Rumble)));
|
hbox_layout->addWidget(CreateGroupBox(tr("Rumble"), Pad::GetGroup(GetPort(), PadGroup::Rumble)));
|
||||||
|
|
||||||
// TODO: Get rid of this garbage once wx is removed
|
hbox_layout->addWidget(
|
||||||
// Remove "Iterative Input"
|
CreateGroupBox(tr("Options"), Pad::GetGroup(GetPort(), PadGroup::Options)));
|
||||||
auto* options_group = Pad::GetGroup(GetPort(), PadGroup::Options);
|
|
||||||
|
|
||||||
auto& bools = options_group->boolean_settings;
|
|
||||||
|
|
||||||
if (bools.size() > 1 || !options_group->numeric_settings.empty())
|
|
||||||
{
|
|
||||||
bools.pop_back();
|
|
||||||
hbox_layout->addWidget(CreateGroupBox(tr("Options"), options_group));
|
|
||||||
}
|
|
||||||
|
|
||||||
setLayout(m_main_layout);
|
setLayout(m_main_layout);
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,12 +58,8 @@ void WiimoteEmuGeneral::CreateMainLayout()
|
||||||
vbox_layout->addWidget(CreateGroupBox(
|
vbox_layout->addWidget(CreateGroupBox(
|
||||||
tr("Rumble"), Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Rumble)));
|
tr("Rumble"), Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Rumble)));
|
||||||
|
|
||||||
// TODO: Get rid of this garbage once wx is removed
|
vbox_layout->addWidget(CreateGroupBox(
|
||||||
// Remove "Iterative Input"
|
tr("Options"), Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Options)));
|
||||||
auto* options_group = Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Options);
|
|
||||||
options_group->boolean_settings.pop_back();
|
|
||||||
|
|
||||||
vbox_layout->addWidget(CreateGroupBox(tr("Options"), options_group));
|
|
||||||
|
|
||||||
m_main_layout->addLayout(vbox_layout);
|
m_main_layout->addLayout(vbox_layout);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue