Skip to content
Permalink
Browse files

DolphinQt: Limit numeric widget width

  • Loading branch information...
Miksel12 authored and Kuijl committed Aug 1, 2019
1 parent c70da39 commit cbfc442e9099825e44c9390b6712773c43ec5aac
@@ -49,7 +49,7 @@ MappingButton::MappingButton(MappingWidget* parent, ControlReference* ref, bool
setFixedHeight(minimumSizeHint().height());

// Make sure that long entries don't throw our layout out of whack.
setFixedWidth(112);
setFixedWidth(WIDGET_MAX_WIDTH);

setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);

@@ -15,6 +15,8 @@ MappingDouble::MappingDouble(MappingWidget* parent, ControllerEmu::NumericSettin
setRange(m_setting.GetMinValue(), m_setting.GetMaxValue());
setDecimals(2);

setFixedWidth(WIDGET_MAX_WIDTH);

if (const auto ui_suffix = m_setting.GetUISuffix())
setSuffix(QStringLiteral(" ") + tr(ui_suffix));

@@ -10,6 +10,8 @@
#include <QString>
#include <QWidget>

constexpr int WIDGET_MAX_WIDTH = 112;

class ControlGroupBox;
class InputConfig;
class IOWindow;

0 comments on commit cbfc442

Please sign in to comment.
You can’t perform that action at this time.