aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-11 21:35:20 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-09 12:41:11 -0700
commit64ae6d54a7e506051917bddb50424257ccf5c1cf (patch)
tree37749040cbe554bd1bdc71b971dc9eb7f2bd6c18
parent30d242efc097de495d2331bc147ca0dfa703f96d (diff)
downloadsubsurface-64ae6d54a7e506051917bddb50424257ccf5c1cf.tar.gz
mobile/divelist: set up the new model for the dive list
And remove the reference to the collapsed model. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--subsurface-helper.cpp4
1 files changed, 3 insertions, 1 deletions
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();