diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-10-24 22:28:26 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-27 07:16:01 -0700 |
commit | 4461b479655a40d46b5f900ca227d30310812891 (patch) | |
tree | de6557631f2346bd772b394a0c89c4b74574c5e0 /core/settings/qPref.cpp | |
parent | d9588ec5df78f8ad20b35e1f75b0e42e9bbb5164 (diff) | |
download | subsurface-4461b479655a40d46b5f900ca227d30310812891.tar.gz |
qPref: reduce recompiles with every commit
Including ssrf-version.h in an include file that a lot of files depend on
caused a ton of unnecessary recompiles with every commit. This should reduce
that problem.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPref.cpp')
-rw-r--r-- | core/settings/qPref.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/settings/qPref.cpp b/core/settings/qPref.cpp index 2d3c53a40..b1c7217b2 100644 --- a/core/settings/qPref.cpp +++ b/core/settings/qPref.cpp @@ -15,6 +15,7 @@ #include "qPrefTechnicalDetails.h" #include "qPrefUnit.h" #include "qPrefUpdateManager.h" +#include "ssrf-version.h" #include <QtQml> #include <QQmlContext> @@ -29,6 +30,16 @@ qPref *qPref::instance() return self; } +const QString qPref::canonical_version() +{ + return QString(CANONICAL_VERSION_STRING); +} + +const QString qPref::mobile_version() +{ + return QString(MOBILE_VERSION_STRING); +} + void qPref::loadSync(bool doSync) { if (!doSync) |