diff options
Diffstat (limited to 'core/settings/qPref.cpp')
-rw-r--r-- | core/settings/qPref.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/settings/qPref.cpp b/core/settings/qPref.cpp index 640300f96..522a74c6d 100644 --- a/core/settings/qPref.cpp +++ b/core/settings/qPref.cpp @@ -49,6 +49,15 @@ void qPref::loadSync(bool doSync) Q_DECLARE_METATYPE(deco_mode); Q_DECLARE_METATYPE(def_file_behavior); Q_DECLARE_METATYPE(taxonomy_category); +Q_DECLARE_METATYPE(units::DURATION); +Q_DECLARE_METATYPE(units::LENGTH); +Q_DECLARE_METATYPE(units::PRESSURE); +Q_DECLARE_METATYPE(units::TEMPERATURE); +Q_DECLARE_METATYPE(unit_system_values); +Q_DECLARE_METATYPE(units::TIME); +Q_DECLARE_METATYPE(units::VOLUME); +Q_DECLARE_METATYPE(units::WEIGHT); + void qPref::registerQML(QQmlEngine *engine) { if (engine) { @@ -77,4 +86,12 @@ void qPref::registerQML(QQmlEngine *engine) qRegisterMetaType<deco_mode>(); qRegisterMetaType<def_file_behavior>(); qRegisterMetaType<taxonomy_category>(); + qRegisterMetaType<units::DURATION>(); + qRegisterMetaType<units::LENGTH>(); + qRegisterMetaType<units::PRESSURE>(); + qRegisterMetaType<units::TEMPERATURE>(); + qRegisterMetaType<unit_system_values>(); + qRegisterMetaType<units::TIME>(); + qRegisterMetaType<units::VOLUME>(); + qRegisterMetaType<units::WEIGHT>(); } |