mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 08:53:24 +00:00
3c3729711c
Add qPrefPrivate class which contains one QSettings variable, delete QSettings from qPref* class definitions this secures there are only instance of QSettings (QSettings needs to be in a QObject class to work) Signed-off-by: Jan Iversen <jani@apache.org>
11 lines
233 B
C++
11 lines
233 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#include "qPrefPrivate.h"
|
|
|
|
qPrefPrivate::qPrefPrivate(QObject *parent) : QObject(parent)
|
|
{
|
|
}
|
|
qPrefPrivate *qPrefPrivate::instance()
|
|
{
|
|
static qPrefPrivate *self = new qPrefPrivate;
|
|
return self;
|
|
}
|