From a776f1d30eac7bbb615bf361db1461fe6c8c0e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 12 Mar 2020 09:36:23 +0100 Subject: [PATCH] Added missing button group on OS X fixes #276 --- src/GUI/optionsdialog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/GUI/optionsdialog.cpp b/src/GUI/optionsdialog.cpp index 79930667..b12794dc 100644 --- a/src/GUI/optionsdialog.cpp +++ b/src/GUI/optionsdialog.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include "map/pcs.h" #include "icons.h" #include "colorbox.h" @@ -419,10 +420,16 @@ QWidget *OptionsDialog::createDataPage() QVBoxLayout *sourceTabLayout = new QVBoxLayout(); #ifdef Q_OS_MAC + QButtonGroup *speedGroup = new QButtonGroup(this); + speedGroup->addButton(_computedSpeed); + speedGroup->addButton(_reportedSpeed); QVBoxLayout *speedOptions = new QVBoxLayout(); speedOptions->addWidget(_computedSpeed); speedOptions->addWidget(_reportedSpeed); + QButtonGroup *elevationGroup = new QButtonGroup(this); + elevationGroup->addButton(_dataGPSElevation); + elevationGroup->addButton(_dataDEMElevation); QVBoxLayout *elevationOptions = new QVBoxLayout(); elevationOptions->addWidget(_dataGPSElevation); elevationOptions->addWidget(_dataDEMElevation);