aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-helper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-09-11 14:41:09 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-09-13 11:21:34 -0700
commitbea552bf0d69e73be9a223369c72bcc122ddff08 (patch)
tree46d05ad06ceeb6fcb99cb67c10285a601c564776 /subsurface-helper.cpp
parentedf4fbd38afb6397bdee393dbf75acc317989be8 (diff)
downloadsubsurface-bea552bf0d69e73be9a223369c72bcc122ddff08.tar.gz
mobile: remove GpsListModel
This is only needed to show the list of GPS fixes obtained with the now removed location service. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-helper.cpp')
-rw-r--r--subsurface-helper.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp
index 11f471a8b..39a830f20 100644
--- a/subsurface-helper.cpp
+++ b/subsurface-helper.cpp
@@ -19,7 +19,6 @@
#include "mobile-widgets/statsmanager.h"
#include "stats/chartlistmodel.h"
#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"
@@ -116,12 +115,6 @@ void run_mobile_ui(double initial_font_size)
// this is frustrating, but we appear to need different import paths on different OSs
engine.addImportPath(":");
engine.addImportPath("qrc://imports");
- QSortFilterProxyModel *gpsSortModel = new QSortFilterProxyModel(nullptr);
- gpsSortModel->setSourceModel(GpsListModel::instance());
- gpsSortModel->setDynamicSortFilter(true);
- gpsSortModel->setSortRole(GpsListModel::GpsWhenRole);
- gpsSortModel->sort(0, Qt::DescendingOrder);
- ctxt->setContextProperty("gpsModel", gpsSortModel);
ctxt->setContextProperty("vendorList", vendorList);
ctxt->setContextProperty("swipeModel", MobileModels::instance()->swipeModel());
ctxt->setContextProperty("diveModel", MobileModels::instance()->listModel());