mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
9d005888fb
remove PartialPressureGas from SettingsObjectWrapper and reference qPrefPartialPressureGas update files using SettingsObjectWrapper/PartialPressureGas to use qPrefPartialPressureGas this activated qPrefPartialPressureGas and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#include "qPref.h"
|
|
#include "qPrefPrivate.h"
|
|
#include "ssrf-version.h"
|
|
|
|
qPref::qPref(QObject *parent) : QObject(parent)
|
|
{
|
|
}
|
|
qPref *qPref::instance()
|
|
{
|
|
static qPref *self = new qPref;
|
|
return self;
|
|
}
|
|
|
|
void qPref::loadSync(bool doSync)
|
|
{
|
|
qPrefAnimations::instance()->loadSync(doSync);
|
|
qPrefCloudStorage::instance()->loadSync(doSync);
|
|
qPrefDisplay::instance()->loadSync(doSync);
|
|
qPrefDiveComputer::instance()->loadSync(doSync);
|
|
qPrefDivePlanner::instance()->loadSync(doSync);
|
|
// qPrefFaceook does not use disk.
|
|
qPrefGeocoding::instance()->loadSync(doSync);
|
|
qPrefLanguage::instance()->loadSync(doSync);
|
|
qPrefLocationService::instance()->loadSync(doSync);
|
|
qPrefPartialPressureGas::instance()->loadSync(doSync);
|
|
qPrefProxy::instance()->loadSync(doSync);
|
|
qPrefTechnicalDetails::instance()->loadSync(doSync);
|
|
qPrefUnits::instance()->loadSync(doSync);
|
|
qPrefUpdateManager::instance()->loadSync(doSync);
|
|
}
|
|
|
|
const QString qPref::canonical_version() const
|
|
{
|
|
return QString(CANONICAL_VERSION_STRING);
|
|
}
|
|
|
|
const QString qPref::mobile_version() const
|
|
{
|
|
return QString(MOBILE_VERSION_STRING);
|
|
}
|