1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-27 00:44:24 +02:00

Added support for GPX comments (cmt tag)

Closes #272
This commit is contained in:
2020-03-09 20:04:13 +01:00
parent 23c18d4acd
commit aea17c9fed
12 changed files with 33 additions and 4 deletions

View File

@ -13,6 +13,8 @@ QString TrackItem::info() const
tt.insert(tr("Name"), _name);
if (!_desc.isEmpty())
tt.insert(tr("Description"), _desc);
if (!_comment.isEmpty() && _comment != _desc)
tt.insert(tr("Comment"), _comment);
tt.insert(tr("Distance"), Format::distance(path().last().last().distance(),
_units));
if (_time > 0)
@ -41,6 +43,7 @@ TrackItem::TrackItem(const Track &track, Map *map, QGraphicsItem *parent)
{
_name = track.name();
_desc = track.description();
_comment = track.comment();
_links = track.links();
_date = track.date();
_time = track.time();