VideoCommon: Convert OptionType to enum class

This commit is contained in:
Dentomologist
2022-02-17 09:54:07 -08:00
parent d9e0bf72dc
commit edbe202aa3
3 changed files with 27 additions and 28 deletions

View File

@ -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);
}