Skip to content

Commit

Permalink
Merge pull request #11271 from jordan-woyak/mapping-button-expanding
Browse files Browse the repository at this point in the history
DolphinQt: Allow mapping buttons to expand horizontally.
  • Loading branch information
AdmiralCurtiss committed Nov 14, 2022
2 parents f614f94 + 6044bc3 commit f05b0ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp
Expand Up @@ -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(
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/DolphinQt/Config/Mapping/MappingWidget.h
Expand Up @@ -9,8 +9,6 @@
#include <QString>
#include <QWidget>

constexpr int WIDGET_MAX_WIDTH = 112;

class ControlGroupBox;
class InputConfig;
class MappingButton;
Expand Down

0 comments on commit f05b0ad

Please sign in to comment.