Merge pull request #11271 from jordan-woyak/mapping-button-expanding

DolphinQt: Allow mapping buttons to expand horizontally.
This commit is contained in:
Admiral H. Curtiss 2022-11-15 00:53:02 +01:00 committed by GitHub
commit f05b0ad669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 10 deletions

View File

@ -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(

View File

@ -9,8 +9,6 @@
#include <QString>
#include <QWidget>
constexpr int WIDGET_MAX_WIDTH = 112;
class ControlGroupBox;
class InputConfig;
class MappingButton;