mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Merge branch 'linusDiveList' of https://github.com/tcanabrava/subsurface
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
commit
e34da61362
7 changed files with 60 additions and 37 deletions
|
@ -785,11 +785,8 @@ QVariant TripItem::data(int column, int role) const
|
|||
|
||||
if (role == Qt::DisplayRole) {
|
||||
switch (column) {
|
||||
case LOCATION:
|
||||
ret = QString(trip->location);
|
||||
break;
|
||||
case DATE:
|
||||
ret = QString(get_trip_date_string(trip->when, trip->nrdives));
|
||||
case NR:
|
||||
ret = QString(trip->location) + QString(get_trip_date_string(trip->when, trip->nrdives));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue