mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
d0e9f62624
add class to cmake and pro register class Signed-off-by: Jan Iversen <jani@apache.org>
21 lines
267 B
C++
21 lines
267 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#include "qmlprefs.h"
|
|
|
|
QMLPrefs *QMLPrefs::m_instance = NULL;
|
|
|
|
|
|
QMLPrefs::QMLPrefs()
|
|
{
|
|
if (!m_instance)
|
|
m_instance = this;
|
|
}
|
|
|
|
QMLPrefs::~QMLPrefs()
|
|
{
|
|
m_instance = NULL;
|
|
}
|
|
|
|
QMLPrefs *QMLPrefs::instance()
|
|
{
|
|
return m_instance;
|
|
}
|