mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 10:39:59 +00:00
VideoCommon: Convert OptionType to enum class
This commit is contained in:
parent
d9e0bf72dc
commit
edbe202aa3
3 changed files with 27 additions and 28 deletions
|
@ -227,11 +227,11 @@ u32 PostProcessingConfigWindow::ConfigGroup::AddWidgets(PostProcessingConfigWind
|
|||
|
||||
switch (m_config_option->m_type)
|
||||
{
|
||||
case OptionType::OPTION_BOOL:
|
||||
case OptionType::Bool:
|
||||
return AddBool(parent, grid, row);
|
||||
case OptionType::OPTION_FLOAT:
|
||||
case OptionType::Float:
|
||||
return AddFloat(parent, grid, row);
|
||||
case OptionType::OPTION_INTEGER:
|
||||
case OptionType::Integer:
|
||||
return AddInteger(parent, grid, row);
|
||||
default:
|
||||
// obviously shouldn't get here
|
||||
|
@ -336,7 +336,7 @@ void PostProcessingConfigWindow::ConfigGroup::EnableSuboptions(const bool state)
|
|||
{
|
||||
for (auto& it : m_subgroups)
|
||||
{
|
||||
if (it->m_config_option->m_type == OptionType::OPTION_BOOL)
|
||||
if (it->m_config_option->m_type == OptionType::Bool)
|
||||
{
|
||||
it->m_checkbox->setEnabled(state);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue