From 3c2a192864c3c3b92f93a15e76c7bd4211106126 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 10 Jan 2020 08:45:34 +0800 Subject: mobile: remove no longer used DiveListModel Signed-off-by: Berthold Stoeger --- mobile-widgets/qmlmanager.cpp | 5 ++--- mobile-widgets/qmlmanager.h | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index dc4961cef..f9fdb3a87 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -19,7 +19,6 @@ #include -#include "qt-models/divelistmodel.h" #include "qt-models/gpslistmodel.h" #include "qt-models/completionmodels.h" #include "qt-models/messagehandlermodel.h" @@ -28,6 +27,7 @@ #include "core/device.h" #include "core/errorhelper.h" #include "core/file.h" +#include "core/divefilter.h" #include "core/qthelper.h" #include "core/qt-gui.h" #include "core/git-access.h" @@ -44,6 +44,7 @@ #include "core/settings/qPrefTechnicalDetails.h" #include "core/settings/qPrefPartialPressureGas.h" #include "core/settings/qPrefUnit.h" +#include "core/subsurface-qt/diveobjecthelper.h" #include "core/trip.h" #include "backend-shared/exportfuncs.h" #include "core/worldmap-save.h" @@ -1409,8 +1410,6 @@ void QMLManager::selectDive(int id) } if (amount_selected == 0) qWarning("QManager::selectDive() called with unknown id"); - // else - // FIXME: CollapsedDiveListSortModel::instance()->updateSelectionState(); } void QMLManager::deleteDive(int id) diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 3919eec35..0ab1ff981 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -13,7 +13,6 @@ #include "core/btdiscovery.h" #include "core/gpslocation.h" #include "core/downloadfromdcthread.h" -#include "qt-models/divelistmodel.h" #include "qt-models/completionmodels.h" #include "qt-models/divelocationmodel.h" #include "core/settings/qPrefCloudStorage.h" @@ -143,8 +142,6 @@ public: void setShowNonDiveComputers(bool show); - DiveListSortModel *dlSortModel; - QStringList suitList() const; QStringList buddyList() const; QStringList divemasterList() const; -- cgit v1.2.3-70-g09d2