mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
c5d17c3d4d
commit
89f8457857
3 changed files with 42 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue