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.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