Skip to content
Permalink
Browse files
Merge pull request #11271 from jordan-woyak/mapping-button-expanding
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.
@@ -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(
@@ -9,8 +9,6 @@
#include <QString>
#include <QWidget>

constexpr int WIDGET_MAX_WIDTH = 112;

class ControlGroupBox;
class InputConfig;
class MappingButton;

0 comments on commit f05b0ad

Please sign in to comment.