diff options
author | jan Iversen <jani@apache.org> | 2018-06-12 10:29:40 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-15 14:12:14 -0700 |
commit | d0e9f626245e7833847ad25ae3b97c5ab87caccb (patch) | |
tree | ac760a0ae3134613db39b20dd2276dc52c2d8052 /subsurface-mobile-helper.cpp | |
parent | 54db1309a0896aa3615956e20a89bb71053a683f (diff) | |
download | subsurface-d0e9f626245e7833847ad25ae3b97c5ab87caccb.tar.gz |
mobile: add qmlprefs class
add class to cmake and pro
register class
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'subsurface-mobile-helper.cpp')
-rw-r--r-- | subsurface-mobile-helper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subsurface-mobile-helper.cpp b/subsurface-mobile-helper.cpp index a36b75c60..6fcdb1191 100644 --- a/subsurface-mobile-helper.cpp +++ b/subsurface-mobile-helper.cpp @@ -17,6 +17,7 @@ #include <QQmlContext> #include <QSortFilterProxyModel> #include "mobile-widgets/qmlmanager.h" +#include "mobile-widgets/qmlprefs.h" #include "qt-models/divelistmodel.h" #include "qt-models/gpslistmodel.h" #include "profile-widget/qmlprofile.h" @@ -55,6 +56,7 @@ void run_ui() { LOG_STP("run_ui starting"); qmlRegisterType<QMLManager>("org.subsurfacedivelog.mobile", 1, 0, "QMLManager"); + qmlRegisterType<QMLPrefs>("org.subsurfacedivelog.mobile", 1, 0, "QMLPrefs"); qmlRegisterType<QMLProfile>("org.subsurfacedivelog.mobile", 1, 0, "QMLProfile"); qmlRegisterType<DownloadThread>("org.subsurfacedivelog.mobile", 1, 0, "DCDownloadThread"); |