mobile/divelist: switch to the correct model

This obviously breaks everything, but now we can start fixing
things.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Berthold Stoeger 2019-12-05 22:36:09 +01:00 committed by Dirk Hohndel
parent b6f821886b
commit 0fc82e3398
2 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,7 @@ Kirigami.ScrollablePage {
title: qsTr("Dive list")
verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
property int horizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1
property QtObject diveListModel: mobileListModel
property QtObject diveListModel: diveModel
supportsRefreshing: true
onRefreshingChanged: {

View file

@ -103,9 +103,8 @@ void run_ui()
gpsSortModel->setSortRole(GpsListModel::GpsWhenRole);
gpsSortModel->sort(0, Qt::DescendingOrder);
QQmlContext *ctxt = engine.rootContext();
ctxt->setContextProperty("diveModel", DiveListSortModel::instance());
MobileListModel *mlm(MobileListModel::instance());
ctxt->setContextProperty("mobileListModel", mlm);
ctxt->setContextProperty("diveModel", mlm);
ctxt->setContextProperty("gpsModel", gpsSortModel);
ctxt->setContextProperty("vendorList", vendorList);
set_non_bt_addresses();