mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
VideoCommon: Convert OptionType to enum class
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user