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>
This commit is contained in:
Tomaz Canabrava 2014-02-06 14:59:06 -02:00 committed by Dirk Hohndel
parent 185b7a454a
commit 2322fdfc42

View file

@ -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()