From 2322fdfc42c3f04de0e000999699490f208769e9 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 6 Feb 2014 14:59:06 -0200 Subject: Load options as soon as the progrm starts Populate the status of the profile tool box as soon as the program starts. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'qt-ui/mainwindow.cpp') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index a44247a34..6d7123a05 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -591,6 +591,22 @@ void MainWindow::readSettings() QFont defaultFont = s.value("divelist_font", qApp->font()).value(); defaultFont.setPointSizeF(s.value("font_size", qApp->font().pointSizeF()).toFloat()); qApp->setFont(defaultFont); + s.endGroup(); + + s.beginGroup("TecDetails"); + ui.profCalcAllTissues->setChecked(s.value("calcalltissues").toBool()); + ui.profCalcCeiling->setChecked(s.value("calcceiling").toBool()); + ui.profDcCeiling->setChecked(s.value("dcceiling").toBool()); + ui.profEad->setChecked(s.value("ead").toBool()); + ui.profIncrement3m->setChecked(s.value("calcceiling3m").toBool()); + ui.profMod->setChecked(s.value("mod").toBool()); + ui.profNtl_tts->setChecked(s.value("calcndltts").toBool()); + ui.profPhe->setChecked(s.value("phegraph").toBool()); + ui.profPn2->setChecked(s.value("pn2graph").toBool()); + ui.profPO2->setChecked(s.value("po2graph").toBool()); + ui.profRuler->setChecked(s.value("rulergraph").toBool()); + ui.profSAC->setChecked(s.value("show_sac").toBool()); + } void MainWindow::writeSettings() -- cgit v1.2.3-70-g09d2