From 64ae6d54a7e506051917bddb50424257ccf5c1cf Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 11 Nov 2019 21:35:20 -0800 Subject: [PATCH] mobile/divelist: set up the new model for the dive list And remove the reference to the collapsed model. Signed-off-by: Dirk Hohndel --- subsurface-helper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp index 06aaa47fa..fb997290b 100644 --- a/subsurface-helper.cpp +++ b/subsurface-helper.cpp @@ -20,6 +20,7 @@ #include "qt-models/divesummarymodel.h" #include "qt-models/gpslistmodel.h" #include "qt-models/messagehandlermodel.h" +#include "qt-models/mobilelistmodel.h" #include "profile-widget/qmlprofile.h" #include "core/downloadfromdcthread.h" #include "qt-models/diveimportedmodel.h" @@ -103,7 +104,8 @@ void run_ui() gpsSortModel->sort(0, Qt::DescendingOrder); QQmlContext *ctxt = engine.rootContext(); ctxt->setContextProperty("diveModel", DiveListSortModel::instance()); - ctxt->setContextProperty("diveTripModel", CollapsedDiveListSortModel::instance()); + MobileListModel *mlm(MobileListModel::instance()); + ctxt->setContextProperty("mobileListModel", mlm); ctxt->setContextProperty("gpsModel", gpsSortModel); ctxt->setContextProperty("vendorList", vendorList); set_non_bt_addresses();