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:
parent
394fcf6d4d
commit
f934df59e4
@ -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);
|
||||
}
|
||||
|
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user