From 8ade76b9f4f8e4bccdcc92dcc3b6db72ebe050e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 23 Nov 2020 00:09:17 +0100 Subject: [PATCH] Improved form layout on OS X --- src/GUI/optionsdialog.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/GUI/optionsdialog.cpp b/src/GUI/optionsdialog.cpp index fb1e0d74..c32af03a 100644 --- a/src/GUI/optionsdialog.cpp +++ b/src/GUI/optionsdialog.cpp @@ -477,12 +477,18 @@ QWidget *OptionsDialog::createDataPage() QFormLayout *formLayout = new QFormLayout(); formLayout->addRow(tr("Speed:"), speedOptions); formLayout->addRow(tr("Elevation:"), elevationOptions); + #ifdef ENABLE_TIMEZONES formLayout->addRow(tr("Time zone:"), zoneOptions); #endif // ENABLE_TIMEZONES - formLayout->addRow(_useSegments); + + QFormLayout *segmentsLayout = new QFormLayout(); + segmentsLayout->addWidget(_useSegments); sourceTabLayout->addLayout(formLayout); + sourceTabLayout->addWidget(line()); + sourceTabLayout->addLayout(segmentsLayout); + #else // Q_OS_MAC QFormLayout *speedLayout = new QFormLayout(); QFormLayout *elevationLayout = new QFormLayout();