From edbe202aa3290ca267acebc7e9602a08e447754f Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Thu, 17 Feb 2022 09:54:07 -0800 Subject: VideoCommon: Convert OptionType to enum class --- .../Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp') diff --git a/Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp b/Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp index 434aaa6d2f..59907bd39b 100644 --- a/Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp @@ -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); } -- cgit v1.2.3