Qt: Populate console region drop-down dynamically

This commit is contained in:
Connor McLaughlin 2020-02-02 00:22:07 +10:00
parent b11a7a106f
commit 96be414e3e
2 changed files with 4 additions and 22 deletions

View File

@ -9,6 +9,9 @@ ConsoleSettingsWidget::ConsoleSettingsWidget(QtHostInterface* host_interface, QW
{
m_ui.setupUi(this);
for (u32 i = 0; i < static_cast<u32>(ConsoleRegion::Count); i++)
m_ui.region->addItem(tr(Settings::GetConsoleRegionDisplayName(static_cast<ConsoleRegion>(i))));
for (u32 i = 0; i < static_cast<u32>(CPUExecutionMode::Count); i++)
m_ui.cpuExecutionMode->addItem(tr(Settings::GetCPUExecutionModeDisplayName(static_cast<CPUExecutionMode>(i))));

View File

@ -40,28 +40,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="region">
<item>
<property name="text">
<string>Auto-Detect</string>
</property>
</item>
<item>
<property name="text">
<string>NTSC-J (Japan)</string>
</property>
</item>
<item>
<property name="text">
<string>NTSC-U (US)</string>
</property>
</item>
<item>
<property name="text">
<string>PAL (Europe, Australia)</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="region"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">