diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-29 14:58:22 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-29 14:58:22 +0900 |
commit | c78d0ad51b2495b4807ae999667b44432a05cb3b (patch) | |
tree | 4bc3a5acadf08d3b61bb41060a0ba09a74f81014 /qt-ui/preferences.cpp | |
parent | 4f53ad736dc3e9942b12f4240b8c391b0100206b (diff) | |
download | subsurface-c78d0ad51b2495b4807ae999667b44432a05cb3b.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r-- | qt-ui/preferences.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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)); |