summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-02-06 14:59:06 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-06 11:32:11 -0800
commit2322fdfc42c3f04de0e000999699490f208769e9 (patch)
treea94e27ed50d26508a3de5d8d90db2c4d1e513f30 /qt-ui/mainwindow.cpp
parent185b7a454a484878a32728adf221a983cc943d48 (diff)
downloadsubsurface-2322fdfc42c3f04de0e000999699490f208769e9.tar.gz
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 <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp16
1 files changed, 16 insertions, 0 deletions
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<QFont>();
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()