mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move dive-site functions into class
In analogy to the previous commit for dive-site-table. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
76c52c87a3
commit
2de6f69c19
20 changed files with 69 additions and 71 deletions
|
@ -480,7 +480,7 @@ void LocationFilterDelegate::paint(QPainter *painter, const QStyleOptionViewItem
|
|||
} else {
|
||||
int distanceMeters = get_distance(&ds->location, ¤tLocation);
|
||||
QString distance = distance_string(distanceMeters);
|
||||
size_t nr = nr_of_dives_at_dive_site(*ds);
|
||||
size_t nr = ds->nr_of_dives();
|
||||
bottomText += tr(" (~%1 away").arg(distance);
|
||||
bottomText += tr(", %n dive(s) here)", "", nr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue