diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-02-20 13:22:57 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-10 09:25:57 -0700 |
commit | ccf5bf6445e4a0897a6b4141881a3f61d96b9b45 (patch) | |
tree | ab8672ba0404e297c0154126362a7e1a43517622 /qt-models/divetripmodel.h | |
parent | 0cd275af67192759414f8e1d0666977f10852d6f (diff) | |
download | subsurface-ccf5bf6445e4a0897a6b4141881a3f61d96b9b45.tar.gz |
dive models: add helper role to find trip above or below dive
This is only used in the mobile UI where the sort direction is fixed and we
refer to dives based on the tree model. So the terms used and the concepts
that these rely on should be guaranteed to be valid.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r-- | qt-models/divetripmodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index c5def254a..49fc3ce69 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -77,7 +77,6 @@ public: // Used for sorting. This is a bit of a layering violation, as sorting should be performed // by the higher-up QSortFilterProxyModel, but it makes things so much easier! virtual bool lessThan(const QModelIndex &i1, const QModelIndex &i2) const = 0; - signals: // The propagation of selection changes is complex. // The control flow of dive-selection goes: @@ -120,6 +119,7 @@ public slots: public: DiveTripModelTree(QObject *parent = nullptr); + int tripInDirection(const struct dive *d, int direction) const; private: int rowCount(const QModelIndex &parent) const override; void clearData() override; |