mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: add qPref.h_and qPrefprivate.h
add 2 header files and 1 cpp file (qPrefPrivate does not have an implementation) The rewrite/consoliadation of SettingsObjectWrapper, qmlmanager, qmlpref and planner needs a place to put common private parts (qPrefPrivate) and 1 common class (qPref). Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
6c9c2168e1
commit
d02a03983d
5 changed files with 121 additions and 0 deletions
18
core/settings/qPref.cpp
Normal file
18
core/settings/qPref.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include "qPref_private.h"
|
||||
#include "qPref.h"
|
||||
|
||||
|
||||
qPref *qPref::m_instance = NULL;
|
||||
qPref *qPref::instance()
|
||||
{
|
||||
if (!m_instance)
|
||||
m_instance = new qPref;
|
||||
return m_instance;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void qPref::loadSync(bool doSync)
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue