mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-18 00:36:16 +00:00
These two member functions were never used, but cause frequent recompilation of the qPref.cpp file. Remove them for now until their usefulness becomes evident. These were the only functions tested in test_qPref.qml. Therefore remove this test-file. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
26 lines
496 B
C++
26 lines
496 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef QPREF_H
|
|
#define QPREF_H
|
|
#include "core/pref.h"
|
|
|
|
#include <QObject>
|
|
#include <QQmlEngine>
|
|
|
|
class qPref : public QObject {
|
|
Q_OBJECT
|
|
|
|
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); }
|
|
|
|
// Register QML
|
|
void registerQML(QQmlEngine *engine);
|
|
|
|
private:
|
|
static void loadSync(bool doSync);
|
|
};
|
|
#endif
|