mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
e9fa298d06
commit
a89b36c661
2 changed files with 1 additions and 17 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue