summaryrefslogtreecommitdiffstats
path: root/core/settings/qPref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/settings/qPref.cpp')
-rw-r--r--core/settings/qPref.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/settings/qPref.cpp b/core/settings/qPref.cpp
index 04a2615d3..4c4a7961c 100644
--- a/core/settings/qPref.cpp
+++ b/core/settings/qPref.cpp
@@ -18,16 +18,6 @@
#include <QtQml>
#include <QQmlContext>
-qPref::qPref(QObject *parent) : QObject(parent)
-{
-}
-
-qPref *qPref::instance()
-{
- static qPref *self = new qPref;
- return self;
-}
-
void qPref::loadSync(bool doSync)
{
if (!doSync)
@@ -58,7 +48,6 @@ void qPref::registerQML(QQmlEngine *engine)
if (engine) {
QQmlContext *ct = engine->rootContext();
- ct->setContextProperty("Pref", qPref::instance());
ct->setContextProperty("PrefCloudStorage", qPrefCloudStorage::instance());
ct->setContextProperty("PrefDisplay", qPrefDisplay::instance());
ct->setContextProperty("PrefDiveComputer", qPrefDiveComputer::instance());