summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp
index 228cc348a8..8d8eb3f54a 100644
--- a/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp
+++ b/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp
@@ -24,6 +24,7 @@
#include "DolphinQt/Config/Graphics/PostProcessingConfigWindow.h"
#include "DolphinQt/Config/ToolTipControls/ToolTipPushButton.h"
#include "DolphinQt/QtUtils/NonDefaultQPushButton.h"
+#include "DolphinQt/QtUtils/QtUtils.h"
#include "VideoCommon/PostProcessing.h"
#include "VideoCommon/VideoBackendBase.h"
@@ -218,8 +219,8 @@ void EnhancementsWidget::CreateWidgets()
1.0f, m_game_layer);
m_3d_convergence = new ConfigFloatSlider(0, Config::GFX_STEREO_CONVERGENCE_MAXIMUM,
Config::GFX_STEREO_CONVERGENCE, 0.01f, m_game_layer);
- m_3d_depth_value = new QLabel();
- m_3d_convergence_value = new QLabel();
+ m_3d_depth_value = new QtUtils::FixedSizeLabel();
+ m_3d_convergence_value = new QtUtils::FixedSizeLabel();
m_3d_swap_eyes = new ConfigBool(tr("Swap Eyes"), Config::GFX_STEREO_SWAP_EYES, m_game_layer);
@@ -239,6 +240,10 @@ void EnhancementsWidget::CreateWidgets()
m_3d_depth_value->setText(QString::asprintf("%.0f", m_3d_depth->GetValue()));
m_3d_convergence_value->setText(QString::asprintf("%.2f", m_3d_convergence->GetValue()));
+ // Reserve space for the widest possible values so the changing label text doesn't resize the
+ // column and jiggle the sliders.
+ m_3d_depth_value->SetSizeHintText(QStringLiteral("999"));
+ m_3d_convergence_value->SetSizeHintText(QStringLiteral("999.99"));
auto current_stereo_mode = Get(m_game_layer, Config::GFX_STEREO_MODE);
if (current_stereo_mode != StereoMode::SideBySide &&