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>
This commit is contained in:
Dirk Hohndel 2019-11-11 21:31:56 -08:00
parent c5d17c3d4d
commit 89f8457857
3 changed files with 42 additions and 0 deletions

View file

@ -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