summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-02-18 18:40:59 +0100
committerGitHub <noreply@github.com>2022-02-18 18:40:59 +0100
commitfa059b20baee3cf553b83c97637e56c2ff049418 (patch)
treea6f07fd10ab1e97c124d9141d17da7e2a1ca99fa /Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp
parent067fbe8f864f3d90eddc1935e5054c790d4d10ad (diff)
parentedbe202aa3290ca267acebc7e9602a08e447754f (diff)
Merge pull request #10460 from Dentomologist/convert_option_type_to_enum_class
VideoCommon: Convert OptionType to enum class
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp8
1 files changed, 4 insertions, 4 deletions
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);
}