1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Some more options dialog polishing on OS X

This commit is contained in:
Martin Tůma 2021-09-02 12:27:20 +02:00
parent 394fcf6d4d
commit f934df59e4
2 changed files with 9 additions and 0 deletions

View File

@ -1,10 +1,16 @@
#include <QtGlobal>
#include "infolabel.h"
#include <QDebug>
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);
}

View File

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