diff options
author | jan Iversen <jani@apache.org> | 2018-07-22 16:19:22 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-25 08:35:04 -0700 |
commit | 3d6848b22c9fb64a99bb3dec535431a6cab09ad9 (patch) | |
tree | c1a7aedcf02120c9ea0031194b1cef2d15db97fe /subsurface-helper.cpp | |
parent | 98820cf970335523b4cd2a84a025c12b5480e0aa (diff) | |
download | subsurface-3d6848b22c9fb64a99bb3dec535431a6cab09ad9.tar.gz |
core: activate qPrefDiveComputer
remove DiveComputer from SettingsObjectWrapper and reference qPrefDiveComputer
update files using SettingsObjectWrapper/DiveComputer to use qPrefDiveComputer
this activated qPrefDiveComputer and removed the similar class from
SettingsObjectWrapper.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'subsurface-helper.cpp')
-rw-r--r-- | subsurface-helper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp index e0c3b6353..42fc075d2 100644 --- a/subsurface-helper.cpp +++ b/subsurface-helper.cpp @@ -162,6 +162,9 @@ void register_qml_types() rc = qmlRegisterType<qPrefDisplay>("org.subsurfacedivelog.mobile", 1, 0, "SsrfDisplayPrefs"); if (rc < 0) qDebug() << "ERROR: Cannot register DisplayPrefs (class qPrefDisplay), QML will not work!!"; + rc = qmlRegisterType<qPrefDiveComputer>("org.subsurfacedivelog.mobile", 1, 0, "SsrfDiveComputerPrefs"); + if (rc < 0) + qDebug() << "ERROR: Cannot register DiveComputerPrefs (class qPrefDiveComputer), QML will not work!!"; #ifndef SUBSURFACE_TEST_DATA #ifdef SUBSURFACE_MOBILE |