2018-06-16 14:03:31 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2018-07-17 13:22:51 +00:00
|
|
|
#include "qPrefPrivate.h"
|
2018-06-16 14:03:31 +00:00
|
|
|
#include "qPref.h"
|
2018-07-07 20:59:26 +00:00
|
|
|
#include "ssrf-version.h"
|
2018-06-16 14:03:31 +00:00
|
|
|
|
2018-06-16 08:08:34 +00:00
|
|
|
qPref::qPref(QObject *parent) :
|
|
|
|
QObject(parent)
|
|
|
|
{
|
|
|
|
}
|
2018-06-16 14:03:31 +00:00
|
|
|
qPref *qPref::instance()
|
|
|
|
{
|
2018-06-16 08:08:34 +00:00
|
|
|
static qPref *self = new qPref;
|
|
|
|
return self;
|
2018-06-16 14:03:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void qPref::loadSync(bool doSync)
|
|
|
|
{
|
2018-07-04 19:45:48 +00:00
|
|
|
qPrefDisplay::instance()->loadSync(doSync);
|
2018-06-16 14:03:31 +00:00
|
|
|
}
|
2018-07-07 20:59:26 +00:00
|
|
|
|
|
|
|
const QString qPref::canonical_version() const
|
|
|
|
{
|
|
|
|
return QString(CANONICAL_VERSION_STRING);
|
|
|
|
}
|
|
|
|
|
|
|
|
const QString qPref::mobile_version() const
|
|
|
|
{
|
|
|
|
return QString(MOBILE_VERSION_STRING);
|
|
|
|
}
|