mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move get_dive_location()/_country() to struct dive
Feels natural in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f1f082d86a
commit
76d672210d
9 changed files with 18 additions and 21 deletions
|
@ -526,7 +526,7 @@ QVariant TemplateLayout::getValue(QString list, QString property, const State &s
|
|||
} else if (property == "timestamp") {
|
||||
return QVariant::fromValue(d->when);
|
||||
} else if (property == "location") {
|
||||
return QString::fromStdString(get_dive_location(d));
|
||||
return QString::fromStdString(d->get_location());
|
||||
} else if (property == "gps") {
|
||||
return formatDiveGPS(d);
|
||||
} else if (property == "gps_decimal") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue