mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
b6f821886b
commit
0fc82e3398
2 changed files with 2 additions and 3 deletions
|
@ -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: {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue