Merge pull request #7032 from spycrab/qt_macos_mpbtn_round

Qt/macOS: Fix mapping buttons not being round
This commit is contained in:
spycrab 2018-05-30 22:45:15 +02:00 committed by GitHub
commit 390fb37a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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);