From f934df59e444037ab38f7f43f37fa47f6d5b4594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 2 Sep 2021 12:27:20 +0200 Subject: [PATCH] Some more options dialog polishing on OS X --- src/GUI/infolabel.cpp | 6 ++++++ src/GUI/optionsdialog.cpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/GUI/infolabel.cpp b/src/GUI/infolabel.cpp index 055e565d..e0d7b3a0 100644 --- a/src/GUI/infolabel.cpp +++ b/src/GUI/infolabel.cpp @@ -1,10 +1,16 @@ +#include #include "infolabel.h" +#include InfoLabel::InfoLabel(const QString &text, QWidget *parent) : QLabel(text, parent) { QFont f(font()); +#ifdef Q_OS_MAC + f.setPointSize(qMax(10, f.pointSize() - 2)); +#else // Q_OS_MAC f.setPointSize(f.pointSize() - 1); +#endif // Q_OS_MAC setWordWrap(true); setFont(f); } diff --git a/src/GUI/optionsdialog.cpp b/src/GUI/optionsdialog.cpp index 5cfcc735..a915ff67 100644 --- a/src/GUI/optionsdialog.cpp +++ b/src/GUI/optionsdialog.cpp @@ -781,6 +781,9 @@ OptionsDialog::OptionsDialog(Options &options, Units units, QWidget *parent) QVBoxLayout *layout = new QVBoxLayout; layout->addLayout(contentLayout); layout->addWidget(buttonBox); +#ifdef Q_OS_MAC + layout->setSizeConstraint(QLayout::SetFixedSize); +#endif // Q_OS_MAC setLayout(layout); setWindowTitle(tr("Options"));