From 6044bc32a899017ef823a4f8e61b377515b51731 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Fri, 11 Nov 2022 23:02:56 -0600 Subject: [PATCH] DolphinQt: Allow mapping buttons to expand horizontally. --- Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp | 8 -------- Source/Core/DolphinQt/Config/Mapping/MappingWidget.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp index 8735ce277f..78c776007d 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp @@ -75,14 +75,6 @@ bool MappingButton::IsInput() const MappingButton::MappingButton(MappingWidget* parent, ControlReference* ref, bool indicator) : ElidedButton(RefToDisplayString(ref)), m_parent(parent), m_reference(ref) { - // Force all mapping buttons to stay at a minimal height. - setFixedHeight(minimumSizeHint().height()); - - // Make sure that long entries don't throw our layout out of whack. - setFixedWidth(WIDGET_MAX_WIDTH); - - setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); - if (IsInput()) { setToolTip( diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingWidget.h b/Source/Core/DolphinQt/Config/Mapping/MappingWidget.h index 941bb09577..0ec5227f34 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingWidget.h +++ b/Source/Core/DolphinQt/Config/Mapping/MappingWidget.h @@ -9,8 +9,6 @@ #include #include -constexpr int WIDGET_MAX_WIDTH = 112; - class ControlGroupBox; class InputConfig; class MappingButton;