mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
d9588ec5df
commit
4461b47965
2 changed files with 13 additions and 3 deletions
|
|
@ -2,7 +2,6 @@
|
|||
#ifndef QPREF_H
|
||||
#define QPREF_H
|
||||
#include "core/pref.h"
|
||||
#include "ssrf-version.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QQmlEngine>
|
||||
|
|
@ -24,8 +23,8 @@ public:
|
|||
void registerQML(QQmlEngine *engine);
|
||||
|
||||
public:
|
||||
static const QString canonical_version() { return QString(CANONICAL_VERSION_STRING); }
|
||||
static const QString mobile_version() { return QString(MOBILE_VERSION_STRING); }
|
||||
static const QString canonical_version();
|
||||
static const QString mobile_version();
|
||||
|
||||
private:
|
||||
static void loadSync(bool doSync);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue