summaryrefslogtreecommitdiffstats
path: root/qt-models/divetripmodel.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-11 21:31:56 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-09 12:41:11 -0700
commit89f84578570112dc82cc194c3b0daedd5e660bc5 (patch)
treef13202e0a4c9635ee8e020c9ae5be7a2bdb381c6 /qt-models/divetripmodel.h
parentc5d17c3d4ddd61a3d0938b3290d002fe6b7622d0 (diff)
downloadsubsurface-89f84578570112dc82cc194c3b0daedd5e660bc5.tar.gz
mobile/divelist: implement trip title and short date for mobile
We pass this through to the underlying data function. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r--qt-models/divetripmodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h
index a10bacc15..c5def254a 100644
--- a/qt-models/divetripmodel.h
+++ b/qt-models/divetripmodel.h
@@ -94,6 +94,8 @@ protected:
// Access trip and dive data
static QVariant diveData(const struct dive *d, int column, int role);
static QVariant tripData(const dive_trip *trip, int column, int role);
+ static QString tripTitle(const dive_trip *trip);
+ static QString tripShortDate(const dive_trip *trip);
void currentChanged();
virtual dive *diveOrNull(const QModelIndex &index) const = 0; // Returns a dive if this index represents a dive, null otherwise