From 3f0d21046e92701de200a00f12bde20a7ad3a55c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 28 May 2017 11:48:30 -0700 Subject: QML UI: add downloaded dives to dive list This already takes into account which of those dives were selected. Right now all we have is select all or none - this needs actual support in the UI, but once that's there, it will just work (famous last words). Signed-off-by: Dirk Hohndel --- qt-models/divelistmodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-models/divelistmodel.h') diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h index d24282776..41bc9107c 100644 --- a/qt-models/divelistmodel.h +++ b/qt-models/divelistmodel.h @@ -14,6 +14,8 @@ class DiveListSortModel : public QSortFilterProxyModel Q_OBJECT public: DiveListSortModel(QObject *parent = 0); + Q_INVOKABLE void addAllDives(); + Q_INVOKABLE void clear(); public slots: int getDiveId(int idx); int getIdxForId(int id); -- cgit v1.2.3-70-g09d2