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)
|
MappingButton::MappingButton(MappingWidget* parent, ControlReference* ref, bool indicator)
|
||||||
: ElidedButton(RefToDisplayString(ref)), m_parent(parent), m_reference(ref)
|
: 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())
|
if (IsInput())
|
||||||
{
|
{
|
||||||
setToolTip(
|
setToolTip(
|
||||||
|
@ -9,8 +9,6 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
constexpr int WIDGET_MAX_WIDTH = 112;
|
|
||||||
|
|
||||||
class ControlGroupBox;
|
class ControlGroupBox;
|
||||||
class InputConfig;
|
class InputConfig;
|
||||||
class MappingButton;
|
class MappingButton;
|
||||||
|
Loading…
Reference in New Issue
Block a user