aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-helper.cpp')
-rw-r--r--subsurface-helper.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp
index f37bd332c..e0c3b6353 100644
--- a/subsurface-helper.cpp
+++ b/subsurface-helper.cpp
@@ -31,10 +31,12 @@
#ifndef SUBSURFACE_TEST_DATA
QObject *qqWindowObject = NULL;
+static void register_meta_types();
void init_ui()
{
init_qt_late();
register_qml_types();
+ register_meta_types();
#ifndef SUBSURFACE_MOBILE
PluginManager::instance().loadPlugins();
@@ -137,6 +139,12 @@ void run_ui()
#endif // SUBSURFACE_MOBILE
qApp->exec();
}
+
+Q_DECLARE_METATYPE(duration_t)
+static void register_meta_types()
+{
+ qRegisterMetaType<duration_t>();
+}
#endif // not SUBSURFACE_TEST_DATA
void register_qml_types()