mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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")
|
title: qsTr("Dive list")
|
||||||
verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
|
verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
|
||||||
property int horizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1
|
property int horizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1
|
||||||
property QtObject diveListModel: mobileListModel
|
property QtObject diveListModel: diveModel
|
||||||
|
|
||||||
supportsRefreshing: true
|
supportsRefreshing: true
|
||||||
onRefreshingChanged: {
|
onRefreshingChanged: {
|
||||||
|
|
|
@ -103,9 +103,8 @@ void run_ui()
|
||||||
gpsSortModel->setSortRole(GpsListModel::GpsWhenRole);
|
gpsSortModel->setSortRole(GpsListModel::GpsWhenRole);
|
||||||
gpsSortModel->sort(0, Qt::DescendingOrder);
|
gpsSortModel->sort(0, Qt::DescendingOrder);
|
||||||
QQmlContext *ctxt = engine.rootContext();
|
QQmlContext *ctxt = engine.rootContext();
|
||||||
ctxt->setContextProperty("diveModel", DiveListSortModel::instance());
|
|
||||||
MobileListModel *mlm(MobileListModel::instance());
|
MobileListModel *mlm(MobileListModel::instance());
|
||||||
ctxt->setContextProperty("mobileListModel", mlm);
|
ctxt->setContextProperty("diveModel", mlm);
|
||||||
ctxt->setContextProperty("gpsModel", gpsSortModel);
|
ctxt->setContextProperty("gpsModel", gpsSortModel);
|
||||||
ctxt->setContextProperty("vendorList", vendorList);
|
ctxt->setContextProperty("vendorList", vendorList);
|
||||||
set_non_bt_addresses();
|
set_non_bt_addresses();
|
||||||
|
|
Loading…
Add table
Reference in a new issue