Permalink
Browse files

Merge pull request #7032 from spycrab/qt_macos_mpbtn_round

Qt/macOS: Fix mapping buttons not being round
  • Loading branch information...
spycrab committed May 30, 2018
2 parents d1db841 + 102d469 commit 390fb37a29b79862e6ee6650729479b7625d402b
Showing with 3 additions and 1 deletion.
  1. +3 −1 Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp
@@ -51,7 +51,9 @@ MappingButton::MappingButton(MappingWidget* widget, ControlReference* ref, bool
int height = QFontMetrics(qApp->font()).height() + 2 * VERTICAL_PADDING;
setMinimumHeight(height);
setMaximumHeight(height);
// macOS needs some wiggle room to always get round buttons
setMaximumHeight(height + 8);
// Make sure that long entries don't throw our layout out of whack
setMaximumWidth(115);

0 comments on commit 390fb37

Please sign in to comment.