summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlprefs.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-29 12:34:40 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-29 12:20:19 -0800
commit360add37a8868c63dbbfbdfa2c9d4e49bab2ef57 (patch)
treec233bc3b9e035461f138292409ae10c4c4dad6a5 /mobile-widgets/qmlprefs.cpp
parent8bc7bef0652221cc74a1ba7926c09db3484108ea (diff)
downloadsubsurface-360add37a8868c63dbbfbdfa2c9d4e49bab2ef57.tar.gz
mobile-widgets: remove qmlprefs.*
class is not longer used, remove it. (also from qml) Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlprefs.cpp')
-rw-r--r--mobile-widgets/qmlprefs.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp
deleted file mode 100644
index 3c2da7f73..000000000
--- a/mobile-widgets/qmlprefs.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-#include "qmlprefs.h"
-#include "qmlmanager.h"
-
-#include "core/membuffer.h"
-#include "core/gpslocation.h"
-#include "core/settings/qPrefUnit.h"
-
-
-/*** Global and constructors ***/
-QMLPrefs *QMLPrefs::m_instance = NULL;
-
-QMLPrefs::QMLPrefs() :
- m_oldStatus(qPrefCloudStorage::CS_UNKNOWN)
-{
- // This strange construct is needed because QMLEngine calls new and that
- // cannot be overwritten
- if (!m_instance)
- m_instance = this;
-}
-
-QMLPrefs::~QMLPrefs()
-{
- m_instance = NULL;
-}
-
-QMLPrefs *QMLPrefs::instance()
-{
- return m_instance;
-}
-
-
-/*** public functions ***/
-qPrefCloudStorage::cloud_status QMLPrefs::oldStatus() const
-{
- return m_oldStatus;
-}
-
-void QMLPrefs::setOldStatus(const qPrefCloudStorage::cloud_status value)
-{
- if (m_oldStatus != value) {
- m_oldStatus = value;
- emit oldStatusChanged();
- }
-}