mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +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 "infolabel.h"
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
InfoLabel::InfoLabel(const QString &text, QWidget *parent)
|
InfoLabel::InfoLabel(const QString &text, QWidget *parent)
|
||||||
: QLabel(text, parent)
|
: QLabel(text, parent)
|
||||||
{
|
{
|
||||||
QFont f(font());
|
QFont f(font());
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
f.setPointSize(qMax(10, f.pointSize() - 2));
|
||||||
|
#else // Q_OS_MAC
|
||||||
f.setPointSize(f.pointSize() - 1);
|
f.setPointSize(f.pointSize() - 1);
|
||||||
|
#endif // Q_OS_MAC
|
||||||
setWordWrap(true);
|
setWordWrap(true);
|
||||||
setFont(f);
|
setFont(f);
|
||||||
}
|
}
|
||||||
|
@ -781,6 +781,9 @@ OptionsDialog::OptionsDialog(Options &options, Units units, QWidget *parent)
|
|||||||
QVBoxLayout *layout = new QVBoxLayout;
|
QVBoxLayout *layout = new QVBoxLayout;
|
||||||
layout->addLayout(contentLayout);
|
layout->addLayout(contentLayout);
|
||||||
layout->addWidget(buttonBox);
|
layout->addWidget(buttonBox);
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
layout->setSizeConstraint(QLayout::SetFixedSize);
|
||||||
|
#endif // Q_OS_MAC
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
setWindowTitle(tr("Options"));
|
setWindowTitle(tr("Options"));
|
||||||
|
Loading…
Reference in New Issue
Block a user