subsurface/core/settings/qPref.cpp
jan Iversen 4a4bc1c8f3 core: add version variables to qPref and make it qml loadable
add canonical_version and mobile_version to qPref

Having a property in qPref, allows the use in qml, and prepare the
interface for qml testing.

Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-10 10:30:50 -07:00

28 lines
461 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)
{
}
const QString qPref::canonical_version() const
{
return QString(CANONICAL_VERSION_STRING);
}
const QString qPref::mobile_version() const
{
return QString(MOBILE_VERSION_STRING);
}