mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
30d242efc0
commit
64ae6d54a7
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
||||||
#include "qt-models/divesummarymodel.h"
|
#include "qt-models/divesummarymodel.h"
|
||||||
#include "qt-models/gpslistmodel.h"
|
#include "qt-models/gpslistmodel.h"
|
||||||
#include "qt-models/messagehandlermodel.h"
|
#include "qt-models/messagehandlermodel.h"
|
||||||
|
#include "qt-models/mobilelistmodel.h"
|
||||||
#include "profile-widget/qmlprofile.h"
|
#include "profile-widget/qmlprofile.h"
|
||||||
#include "core/downloadfromdcthread.h"
|
#include "core/downloadfromdcthread.h"
|
||||||
#include "qt-models/diveimportedmodel.h"
|
#include "qt-models/diveimportedmodel.h"
|
||||||
|
@ -103,7 +104,8 @@ void run_ui()
|
||||||
gpsSortModel->sort(0, Qt::DescendingOrder);
|
gpsSortModel->sort(0, Qt::DescendingOrder);
|
||||||
QQmlContext *ctxt = engine.rootContext();
|
QQmlContext *ctxt = engine.rootContext();
|
||||||
ctxt->setContextProperty("diveModel", DiveListSortModel::instance());
|
ctxt->setContextProperty("diveModel", DiveListSortModel::instance());
|
||||||
ctxt->setContextProperty("diveTripModel", CollapsedDiveListSortModel::instance());
|
MobileListModel *mlm(MobileListModel::instance());
|
||||||
|
ctxt->setContextProperty("mobileListModel", 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…
Reference in a new issue