mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:33:24 +00:00
b9b1f03f0d
remove CloudStorage from SettingsObjectWrapper and reference qPrefCloudStorage update files using SettingsObjectWrapper/CloudStorage to use qPrefCloudStorage this activated qPrefCloudStorage and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
30 lines
555 B
C++
30 lines
555 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#include "qPrefPrivate.h"
|
|
#include "qPref.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)
|
|
{
|
|
qPrefCloudStorage::instance()->loadSync(doSync);
|
|
qPrefDisplay::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);
|
|
}
|