From b874ce30c1ddada89a819ec8b439eb767393a43d Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 2 Nov 2016 10:00:51 +0100 Subject: [PATCH 2/2] Also grey out labels when not relevant for current deco mode To: subsurface@subsurface-divelog.org Signed-off-by: Robert C. Helling --- desktop-widgets/preferences/preferences_graph.cpp | 3 +++ desktop-widgets/preferences/preferences_graph.ui | 30 +++++++++++------------ 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp index c236728..062f30a 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 4c41ec6..ee31c20 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 @@ -130,14 +130,14 @@ - // row was 8 + Show setpoints when viewing pO₂ - // row was 9 + Show individual O₂ sensor values when viewing pO₂ @@ -147,7 +147,7 @@ - // Ceiling options + Ceiling display setup @@ -181,11 +181,11 @@ - + VPM-B Conservatism - + Qt::AlignCenter @@ -214,11 +214,11 @@ - + GFHigh - + Qt::AlignCenter @@ -234,11 +234,11 @@ - + GFLow - + Qt::AlignCenter @@ -272,7 +272,7 @@ Metabolic rate (ℓ O₂/min) - + Qt::AlignCenter @@ -289,7 +289,7 @@ Dilution ratio - + Qt::AlignCenter @@ -307,7 +307,7 @@ - // Misc group + Misc -- 2.8.4 (Apple Git-73)