From c78d0ad51b2495b4807ae999667b44432a05cb3b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 29 May 2013 14:58:22 +0900 Subject: Correctly enable partial pressure threshold entry in preferences The initial state needs to reflect the value of the checkbox. Once the dialog is run, there is a signal/slot connection in the .ui file that keeps things in sync. Signed-off-by: Dirk Hohndel --- qt-ui/preferences.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/preferences.cpp') diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index a63894777..8949a2df0 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -27,8 +27,11 @@ PreferencesDialog::PreferencesDialog(QWidget* parent, Qt::WindowFlags f) : QDial s.beginGroup("TecDetails"); ui->calculated_ceiling->setChecked(B(calcceiling, profile_calc_ceiling)); ui->phe->setChecked(B(phegraph, pp_graphs.phe)); + ui->pheThreshold->setEnabled(ui->phe->isChecked()); ui->po2->setChecked(B(po2graph, pp_graphs.po2)); + ui->po2Threshold->setEnabled(ui->po2->isChecked()); ui->pn2->setChecked(B(pn2graph, pp_graphs.pn2)); + ui->pn2Threshold->setEnabled(ui->pn2->isChecked()); ui->pheThreshold->setValue(D(phethreshold, pp_graphs.phe_threshold)); ui->po2Threshold->setValue(D(po2threshold, pp_graphs.po2_threshold)); ui->pn2Threshold->setValue(D(pn2threshold, pp_graphs.pn2_threshold)); -- cgit v1.2.3-70-g09d2