mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: activate qPrefGeneral
remove General from SettingsObjectWrapper and reference qPrefGeneral update files using SettingsObjectWrapper/General to use qPrefGeneral this activated qPrefGeneral and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
4a7864444b
commit
691025fa24
8 changed files with 53 additions and 361 deletions
|
@ -52,11 +52,11 @@ void PreferencesGraph::refreshSettings()
|
|||
|
||||
void PreferencesGraph::syncSettings()
|
||||
{
|
||||
auto general = SettingsObjectWrapper::instance()->general_settings;
|
||||
general->setDefaultSetPoint(lrint(ui->defaultSetpoint->value() * 1000.0));
|
||||
general->setO2Consumption(lrint(ui->psro2rate->value() *1000.0));
|
||||
general->setPscrRatio(lrint(1000.0 / ui->pscrfactor->value()));
|
||||
general->setAutoRecalculateThumbnails(ui->auto_recalculate_thumbnails->isChecked());
|
||||
auto general = qPrefGeneral::instance();
|
||||
general->set_defaultsetpoint(lrint(ui->defaultSetpoint->value() * 1000.0));
|
||||
general->set_o2consumption(lrint(ui->psro2rate->value() *1000.0));
|
||||
general->set_pscr_ratio(lrint(1000.0 / ui->pscrfactor->value()));
|
||||
general->set_auto_recalculate_thumbnails(ui->auto_recalculate_thumbnails->isChecked());
|
||||
|
||||
auto pp_gas = qPrefPartialPressureGas::instance();
|
||||
pp_gas->set_phe_threshold(ui->pheThreshold->value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue