From b24caa4e2db42d300e3806ca3d13ce72202a24d8 Mon Sep 17 00:00:00 2001 From: willemferguson Date: Sun, 8 Dec 2019 15:44:14 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- core/settings/qPref.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') 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 #include @@ -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 -- cgit v1.2.3-70-g09d2