diff options
author | Robert C. Helling <helling@atdotde.de> | 2019-01-29 14:27:27 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2019-02-05 14:18:14 +0100 |
commit | c9d8b4f605d55b99ec41ec1eaa008118889261c3 (patch) | |
tree | 5b279ab8ef3a4cf280701a975033625ef95b1b0d /desktop-widgets/mainwindow.cpp | |
parent | 2eebbfa3a4ee692df3ba84ae01bf390a6b83e6de (diff) | |
download | subsurface-c9d8b4f605d55b99ec41ec1eaa008118889261c3.tar.gz |
Add button to toggle deco info in info box
The info box can get longish. Offer the user to turn
off display of deco information (surface GF and
individual ceilings).
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 2d1f61d2b..9a70d9ec7 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -147,7 +147,7 @@ MainWindow::MainWindow() : QMainWindow(), ui.profPhe, ui.profPn2, ui.profPO2, // partial pressure graphs ui.profRuler, ui.profScaled, // measuring and scaling ui.profTogglePicture, ui.profTankbar, - ui.profMod, ui.profNdl_tts, // various values that a user is either interested in or not + ui.profMod, ui.profDeco, ui.profNdl_tts, // various values that a user is either interested in or not ui.profEad, ui.profSAC, ui.profHR, // very few dive computers support this ui.profTissues}; // maybe less frequently used @@ -293,6 +293,7 @@ MainWindow::MainWindow() : QMainWindow(), connect(ui.profIncrement3m, &QAction::triggered, tec, &qPrefTechnicalDetails::set_calcceiling3m); connect(ui.profMod, &QAction::triggered, tec, &qPrefTechnicalDetails::set_mod); connect(ui.profNdl_tts, &QAction::triggered, tec, &qPrefTechnicalDetails::set_calcndltts); + connect(ui.profDeco, &QAction::triggered, tec, &qPrefTechnicalDetails::set_decoinfo); connect(ui.profHR, &QAction::triggered, tec, &qPrefTechnicalDetails::set_hrgraph); connect(ui.profRuler, &QAction::triggered, tec, &qPrefTechnicalDetails::set_rulergraph); connect(ui.profSAC, &QAction::triggered, tec, &qPrefTechnicalDetails::set_show_sac); @@ -345,6 +346,7 @@ MainWindow::MainWindow() : QMainWindow(), ui.profIncrement3m->setChecked(qPrefTechnicalDetails::calcceiling3m()); ui.profMod->setChecked(qPrefTechnicalDetails::mod()); ui.profNdl_tts->setChecked(qPrefTechnicalDetails::calcndltts()); + ui.profDeco->setChecked(qPrefTechnicalDetails::decoinfo()); ui.profPhe->setChecked(pp_gas->phe()); ui.profPn2->setChecked(pp_gas->pn2()); ui.profPO2->setChecked(pp_gas->po2()); @@ -447,6 +449,7 @@ void MainWindow::configureToolbar() { ui.profTankbar->setDisabled(freeDiveMode); ui.profMod->setDisabled(freeDiveMode); ui.profNdl_tts->setDisabled(freeDiveMode); + ui.profDeco->setDisabled(freeDiveMode); ui.profEad->setDisabled(freeDiveMode); ui.profSAC->setDisabled(freeDiveMode); ui.profTissues->setDisabled(freeDiveMode); |