From c25ca184ec4c60f93bdec98c0f6c1b3113cf1f8d Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 2 Nov 2016 10:00:51 +0100 Subject: Also grey out labels when not relevant for current deco mode Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- desktop-widgets/preferences/preferences_graph.cpp | 3 +++ desktop-widgets/preferences/preferences_graph.ui | 30 +++++++++++------------ 2 files changed, 18 insertions(+), 15 deletions(-) (limited to 'desktop-widgets/preferences') diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp index c236728a6..062f30a6f 100644 --- a/desktop-widgets/preferences/preferences_graph.cpp +++ b/desktop-widgets/preferences/preferences_graph.cpp @@ -88,8 +88,11 @@ void PreferencesGraph::on_buehlmann_toggled(bool buehlmann) { ui->gfhigh->setEnabled(buehlmann); ui->gflow->setEnabled(buehlmann); + ui->label_GFhigh->setEnabled(buehlmann); + ui->label_GFlow->setEnabled(buehlmann); ui->gf_low_at_maxdepth->setEnabled(buehlmann); ui->vpmb_conservatism->setEnabled(!buehlmann); + ui->label_VPMB->setEnabled(!buehlmann); } #undef DANGER_GF diff --git a/desktop-widgets/preferences/preferences_graph.ui b/desktop-widgets/preferences/preferences_graph.ui index a0117170f..3e175b985 100644 --- a/desktop-widgets/preferences/preferences_graph.ui +++ b/desktop-widgets/preferences/preferences_graph.ui @@ -6,15 +6,15 @@ 0 0 - 505 - 575 + 650 + 578 Form - // Gas pressure options + Gas pressure display setup @@ -127,14 +127,14 @@ - // row was 8 + Show setpoints when viewing pO₂ - // row was 9 + Show individual O₂ sensor values when viewing pO₂ @@ -144,7 +144,7 @@ - // Ceiling options + Ceiling display setup @@ -178,11 +178,11 @@ - + VPM-B Conservatism - + Qt::AlignCenter @@ -211,11 +211,11 @@ - + GFHigh - + Qt::AlignCenter @@ -231,11 +231,11 @@ - + GFLow - + Qt::AlignCenter @@ -269,7 +269,7 @@ Metabolic rate (ℓ O₂/min) - + Qt::AlignCenter @@ -286,7 +286,7 @@ Dilution ratio - + Qt::AlignCenter @@ -304,7 +304,7 @@ - // Misc group + Misc -- cgit v1.2.3-70-g09d2