Cleanup: don't instantiate a QPref object

QPref has only static functions. There seems to be no point in
instantiating a singleton of this object. Remove the instance()
method and remove the Q_OBJECT macro.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-04-03 23:31:28 +02:00 committed by Dirk Hohndel
parent e9fa298d06
commit a89b36c661
2 changed files with 1 additions and 17 deletions

View file

@ -6,13 +6,8 @@
#include <QObject>
#include <QQmlEngine>
class qPref : public QObject {
Q_OBJECT
class qPref {
public:
qPref(QObject *parent = NULL);
static qPref *instance();
// Load/Sync local settings (disk) and struct preference
static void load() { loadSync(false); }
static void sync() { loadSync(true); }