mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
185b7a454a
commit
2322fdfc42
1 changed files with 16 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue