subsurface/core/settings/qPref.cpp
jan Iversen da61c1714f core: activate qPrefDisplay in SettingsObjectWrapper
add the prepared class qPrefDisplay to SettingsObjectWrapper and thereby making it active.

As a consequence of the uniform naming standard desktop-widgets/preferences_defaults.cpp and
tests/testpreferences.cpp have been updated.

Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-12 18:44:31 +02:00

29 lines
506 B
C++

// SPDX-License-Identifier: GPL-2.0
#include "qPref_private.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)
{
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);
}