aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/mobilelistmodel.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-20 13:22:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-10 09:25:57 -0700
commitccf5bf6445e4a0897a6b4141881a3f61d96b9b45 (patch)
treeab8672ba0404e297c0154126362a7e1a43517622 /qt-models/mobilelistmodel.cpp
parent0cd275af67192759414f8e1d0666977f10852d6f (diff)
downloadsubsurface-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/mobilelistmodel.cpp')
-rw-r--r--qt-models/mobilelistmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/mobilelistmodel.cpp b/qt-models/mobilelistmodel.cpp
index 75753b12a..cbb6871b6 100644
--- a/qt-models/mobilelistmodel.cpp
+++ b/qt-models/mobilelistmodel.cpp
@@ -47,6 +47,8 @@ QHash<int, QByteArray> MobileListModelBase::roleNames() const
roles[FirstGasRole] = "firstGas";
roles[SelectedRole] = "selected";
roles[DiveInTripRole] = "diveInTrip";
+ roles[TripAbove] = "tripAbove";
+ roles[TripBelow] = "tripBelow";
return roles;
}