mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #11271 from jordan-woyak/mapping-button-expanding
DolphinQt: Allow mapping buttons to expand horizontally.
This commit is contained in:
commit
f05b0ad669
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user