mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
Settings polishing on OS X
This commit is contained in:
parent
ec798451e8
commit
1513130435
@ -9,6 +9,7 @@
|
|||||||
#include <QGroupBox>
|
#include <QGroupBox>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
|
#include <QLabel>
|
||||||
#include <QSysInfo>
|
#include <QSysInfo>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "icons.h"
|
#include "icons.h"
|
||||||
@ -84,10 +85,10 @@ QWidget *OptionsDialog::createAppearancePage()
|
|||||||
pathTabLayout->addWidget(l1);
|
pathTabLayout->addWidget(l1);
|
||||||
pathTabLayout->addLayout(routeLayout);
|
pathTabLayout->addLayout(routeLayout);
|
||||||
pathTabLayout->addWidget(l2);
|
pathTabLayout->addWidget(l2);
|
||||||
#else
|
#else // Q_OS_MAC
|
||||||
pathTabLayout->addWidget(trackBox);
|
pathTabLayout->addWidget(trackBox);
|
||||||
pathTabLayout->addWidget(routeBox);
|
pathTabLayout->addWidget(routeBox);
|
||||||
#endif
|
#endif // Q_OS_MAC
|
||||||
pathTabLayout->addLayout(pathAALayout);
|
pathTabLayout->addLayout(pathAALayout);
|
||||||
pathTabLayout->addStretch();
|
pathTabLayout->addStretch();
|
||||||
pathTab->setLayout(pathTabLayout);
|
pathTab->setLayout(pathTabLayout);
|
||||||
@ -145,21 +146,37 @@ QWidget *OptionsDialog::createDataPage()
|
|||||||
smoothLayout->addRow(tr("Heart rate:"), _heartRateFilter);
|
smoothLayout->addRow(tr("Heart rate:"), _heartRateFilter);
|
||||||
smoothLayout->addRow(tr("Cadence:"), _cadenceFilter);
|
smoothLayout->addRow(tr("Cadence:"), _cadenceFilter);
|
||||||
smoothLayout->addRow(tr("Power:"), _powerFilter);
|
smoothLayout->addRow(tr("Power:"), _powerFilter);
|
||||||
|
#ifndef Q_OS_MAC
|
||||||
QGroupBox *smoothBox = new QGroupBox(tr("Smoothing"));
|
QGroupBox *smoothBox = new QGroupBox(tr("Smoothing"));
|
||||||
smoothBox->setLayout(smoothLayout);
|
smoothBox->setLayout(smoothLayout);
|
||||||
|
#endif // Q_OS_MAC
|
||||||
|
|
||||||
_outlierEliminate = new QCheckBox(tr("Eliminate GPS outliers"));
|
_outlierEliminate = new QCheckBox(tr("Eliminate GPS outliers"));
|
||||||
_outlierEliminate->setChecked(_options->outlierEliminate);
|
_outlierEliminate->setChecked(_options->outlierEliminate);
|
||||||
|
|
||||||
QFormLayout *outlierLayout = new QFormLayout();
|
QFormLayout *outlierLayout = new QFormLayout();
|
||||||
outlierLayout->addWidget(_outlierEliminate);
|
outlierLayout->addWidget(_outlierEliminate);
|
||||||
|
#ifndef Q_OS_MAC
|
||||||
QGroupBox *outlierBox = new QGroupBox(tr("Outlier elimination"));
|
QGroupBox *outlierBox = new QGroupBox(tr("Outlier elimination"));
|
||||||
outlierBox->setLayout(outlierLayout);
|
outlierBox->setLayout(outlierLayout);
|
||||||
|
#endif // Q_OS_MAC
|
||||||
|
|
||||||
QWidget *filterTab = new QWidget();
|
QWidget *filterTab = new QWidget();
|
||||||
QVBoxLayout *filterTabLayout = new QVBoxLayout();
|
QVBoxLayout *filterTabLayout = new QVBoxLayout();
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
QLabel *label = new QLabel(tr("Smoothing:"));
|
||||||
|
QFrame *line = new QFrame();
|
||||||
|
line->setFrameShape(QFrame::HLine);
|
||||||
|
line->setFrameShadow(QFrame::Sunken);
|
||||||
|
|
||||||
|
filterTabLayout->addWidget(label);
|
||||||
|
filterTabLayout->addLayout(smoothLayout);
|
||||||
|
filterTabLayout->addWidget(line);
|
||||||
|
filterTabLayout->addLayout(outlierLayout);
|
||||||
|
#else // Q_OS_MAC
|
||||||
filterTabLayout->addWidget(outlierBox);
|
filterTabLayout->addWidget(outlierBox);
|
||||||
filterTabLayout->addWidget(smoothBox);
|
filterTabLayout->addWidget(smoothBox);
|
||||||
|
#endif // Q_OS_MAC
|
||||||
filterTabLayout->addStretch();
|
filterTabLayout->addStretch();
|
||||||
filterTab->setLayout(filterTabLayout);
|
filterTab->setLayout(filterTabLayout);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user