aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar willemferguson <willemferguson@zoology.up.ac.za>2019-12-08 15:44:14 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-25 02:57:42 +0900
commitb24caa4e2db42d300e3806ca3d13ce72202a24d8 (patch)
tree31b0d4c9824427f19ab757ecf185a714ae6b80ac /core
parentf63f3eb4ae0cd3621cf5748dfd76749b40b6d886 (diff)
downloadsubsurface-b24caa4e2db42d300e3806ca3d13ce72202a24d8.tar.gz
Preferenced UI: add dive download tab
Add a preferences tab for dive download, allowing resetting the buttons representing download connections in the Download panel. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/settings/qPref.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/settings/qPref.cpp b/core/settings/qPref.cpp
index c70ad4dbe..6b18d1915 100644
--- a/core/settings/qPref.cpp
+++ b/core/settings/qPref.cpp
@@ -15,6 +15,7 @@
#include "qPrefUnit.h"
#include "qPrefUpdateManager.h"
#include "qPrefEquipment.h"
+#include "qPrefMedia.h"
#include <QtQml>
#include <QQmlContext>
@@ -40,6 +41,7 @@ void qPref::loadSync(bool doSync)
qPrefUnits::loadSync(doSync);
qPrefUpdateManager::loadSync(doSync);
qPrefEquipment::loadSync(doSync);
+ qPrefMedia::loadSync(doSync);
}
Q_DECLARE_METATYPE(deco_mode);
@@ -64,6 +66,8 @@ void qPref::registerQML(QQmlEngine *engine)
ct->setContextProperty("PrefUnits", qPrefUnits::instance());
ct->setContextProperty("PrefUpdateManager", qPrefUpdateManager::instance());
ct->setContextProperty("PrefEquipment", qPrefUpdateManager::instance());
+ ct->setContextProperty("PrefMedia", qPrefUpdateManager::instance());
+ ct->setContextProperty("PrefClearDc", qPrefUpdateManager::instance());
}
// Register special types