mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: add qmlprefs class
add class to cmake and pro register class Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
54db1309a0
commit
d0e9f62624
6 changed files with 55 additions and 0 deletions
21
mobile-widgets/qmlprefs.cpp
Normal file
21
mobile-widgets/qmlprefs.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
// 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue