mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Improved data sources options layout on OS X
This commit is contained in:
parent
ea92d4d817
commit
edb80dd11f
@ -352,15 +352,6 @@ QWidget *OptionsDialog::createDataPage()
|
|||||||
else
|
else
|
||||||
_computedSpeed->setChecked(true);
|
_computedSpeed->setChecked(true);
|
||||||
|
|
||||||
QFormLayout *speedLayout = new QFormLayout();
|
|
||||||
speedLayout->addWidget(_computedSpeed);
|
|
||||||
speedLayout->addWidget(_reportedSpeed);
|
|
||||||
|
|
||||||
#ifndef Q_OS_MAC
|
|
||||||
QGroupBox *speedBox = new QGroupBox(tr("Speed"));
|
|
||||||
speedBox->setLayout(speedLayout);
|
|
||||||
#endif // Q_OS_MAC
|
|
||||||
|
|
||||||
_gpsElevation = new QRadioButton(tr("GPS data"));
|
_gpsElevation = new QRadioButton(tr("GPS data"));
|
||||||
_demElevation = new QRadioButton(tr("DEM data"));
|
_demElevation = new QRadioButton(tr("DEM data"));
|
||||||
if (_options->useDEMElevation)
|
if (_options->useDEMElevation)
|
||||||
@ -368,25 +359,40 @@ QWidget *OptionsDialog::createDataPage()
|
|||||||
else
|
else
|
||||||
_gpsElevation->setChecked(true);
|
_gpsElevation->setChecked(true);
|
||||||
|
|
||||||
QFormLayout *elevationLayout = new QFormLayout();
|
|
||||||
elevationLayout->addWidget(_gpsElevation);
|
|
||||||
elevationLayout->addWidget(_demElevation);
|
|
||||||
|
|
||||||
#ifndef Q_OS_MAC
|
|
||||||
QGroupBox *elevationBox = new QGroupBox(tr("Elevation"));
|
|
||||||
elevationBox->setLayout(elevationLayout);
|
|
||||||
#endif // Q_OS_MAC
|
|
||||||
|
|
||||||
|
|
||||||
QWidget *sourceTab = new QWidget();
|
QWidget *sourceTab = new QWidget();
|
||||||
QVBoxLayout *sourceTabLayout = new QVBoxLayout();
|
QVBoxLayout *sourceTabLayout = new QVBoxLayout();
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
sourceTabLayout->addWidget(new QLabel(tr("Speed:")));
|
QVBoxLayout *speedOptions = new QVBoxLayout();
|
||||||
sourceTabLayout->addLayout(speedLayout);
|
speedOptions->addWidget(_computedSpeed);
|
||||||
sourceTabLayout->addWidget(line());
|
speedOptions->addWidget(_reportedSpeed);
|
||||||
sourceTabLayout->addWidget(new QLabel(tr("Elevation:")));
|
|
||||||
sourceTabLayout->addLayout(elevationLayout);
|
QVBoxLayout *elevationOptions = new QVBoxLayout();
|
||||||
|
elevationOptions->addWidget(_gpsElevation);
|
||||||
|
elevationOptions->addWidget(_demElevation);
|
||||||
|
|
||||||
|
QFormLayout *formLayout = new QFormLayout();
|
||||||
|
formLayout->addRow(tr("Speed:"), speedOptions);
|
||||||
|
formLayout->addRow(tr("Elevation:"), elevationOptions);
|
||||||
|
|
||||||
|
sourceTabLayout->addLayout(formLayout);
|
||||||
#else // Q_OS_MAC
|
#else // Q_OS_MAC
|
||||||
|
QFormLayout *speedLayout = new QFormLayout();
|
||||||
|
QFormLayout *elevationLayout = new QFormLayout();
|
||||||
|
|
||||||
|
speedLayout->addWidget(_computedSpeed);
|
||||||
|
speedLayout->addWidget(_reportedSpeed);
|
||||||
|
|
||||||
|
QGroupBox *speedBox = new QGroupBox(tr("Speed"));
|
||||||
|
speedBox->setLayout(speedLayout);
|
||||||
|
|
||||||
|
elevationLayout->addWidget(_gpsElevation);
|
||||||
|
elevationLayout->addWidget(_demElevation);
|
||||||
|
|
||||||
|
QGroupBox *elevationBox = new QGroupBox(tr("Elevation"));
|
||||||
|
elevationBox->setLayout(elevationLayout);
|
||||||
|
|
||||||
sourceTabLayout->addWidget(speedBox);
|
sourceTabLayout->addWidget(speedBox);
|
||||||
sourceTabLayout->addWidget(elevationBox);
|
sourceTabLayout->addWidget(elevationBox);
|
||||||
#endif // Q_OS_MAC
|
#endif // Q_OS_MAC
|
||||||
|
Loading…
Reference in New Issue
Block a user