mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
8bc7bef065
commit
360add37a8
5 changed files with 0 additions and 85 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
set(SUBSURFACE_MOBILE_SRCS
|
||||
qmlmanager.cpp
|
||||
qmlprefs.cpp
|
||||
qml/kirigami/src/columnview.cpp
|
||||
qml/kirigami/src/delegaterecycler.cpp
|
||||
qml/kirigami/src/enums.cpp
|
||||
|
|
|
@ -818,10 +818,6 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
}
|
||||
}
|
||||
|
||||
QMLPrefs {
|
||||
id: prefs
|
||||
}
|
||||
|
||||
QMLManager {
|
||||
id: manager
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#ifndef QMLPREFS_H
|
||||
#define QMLPREFS_H
|
||||
|
||||
#include <QObject>
|
||||
#include "core/settings/qPrefCloudStorage.h"
|
||||
#include "core/settings/qPrefDisplay.h"
|
||||
|
||||
|
||||
class QMLPrefs : public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(qPrefCloudStorage::cloud_status oldStatus
|
||||
MEMBER m_oldStatus
|
||||
WRITE setOldStatus
|
||||
NOTIFY oldStatusChanged)
|
||||
public:
|
||||
QMLPrefs();
|
||||
~QMLPrefs();
|
||||
|
||||
static QMLPrefs *instance();
|
||||
|
||||
qPrefCloudStorage::cloud_status oldStatus() const;
|
||||
void setOldStatus(const qPrefCloudStorage::cloud_status value);
|
||||
|
||||
private:
|
||||
static QMLPrefs *m_instance;
|
||||
qPrefCloudStorage::cloud_status m_oldStatus;
|
||||
|
||||
signals:
|
||||
void oldStatusChanged();
|
||||
};
|
||||
|
||||
#endif
|
|
@ -111,7 +111,6 @@ SOURCES += ../../subsurface-mobile-main.cpp \
|
|||
../../backend-shared/exportfuncs.cpp \
|
||||
../../backend-shared/plannershared.cpp \
|
||||
../../mobile-widgets/qmlmanager.cpp \
|
||||
../../mobile-widgets/qmlprefs.cpp \
|
||||
../../qt-models/divelistmodel.cpp \
|
||||
../../qt-models/diveplotdatamodel.cpp \
|
||||
../../qt-models/gpslistmodel.cpp \
|
||||
|
@ -244,7 +243,6 @@ HEADERS += \
|
|||
../../backend-shared/exportfuncs.h \
|
||||
../../backend-shared/plannershared.h \
|
||||
../../mobile-widgets/qmlmanager.h \
|
||||
../../mobile-widgets/qmlprefs.h \
|
||||
../../map-widget/qmlmapwidgethelper.h \
|
||||
../../qt-models/divelistmodel.h \
|
||||
../../qt-models/diveplotdatamodel.h \
|
||||
|
|
Loading…
Add table
Reference in a new issue