mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 11:39:16 +02:00
@ -15,6 +15,8 @@ QString RouteItem::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 (!_links.isEmpty()) {
|
||||
@ -43,6 +45,7 @@ RouteItem::RouteItem(const Route &route, Map *map, QGraphicsItem *parent)
|
||||
|
||||
_name = route.name();
|
||||
_desc = route.description();
|
||||
_comment = route.comment();
|
||||
_links = route.links();
|
||||
_coordinatesFormat = DecimalDegrees;
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ public:
|
||||
private:
|
||||
QString _name;
|
||||
QString _desc;
|
||||
QString _comment;
|
||||
QVector<Link> _links;
|
||||
CoordinatesFormat _coordinatesFormat;
|
||||
|
||||
|
@ -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();
|
||||
|
@ -22,6 +22,7 @@ public:
|
||||
private:
|
||||
QString _name;
|
||||
QString _desc;
|
||||
QString _comment;
|
||||
QVector<Link> _links;
|
||||
QDateTime _date;
|
||||
qreal _time;
|
||||
|
@ -30,6 +30,10 @@ QString WaypointItem::info() const
|
||||
if (!_waypoint.description().isEmpty())
|
||||
tt.insert(qApp->translate("WaypointItem", "Description"),
|
||||
_waypoint.description());
|
||||
if (!_waypoint.comment().isEmpty()
|
||||
&& _waypoint.comment() != _waypoint.description())
|
||||
tt.insert(qApp->translate("WaypointItem", "Comment"),
|
||||
_waypoint.comment());
|
||||
if (_waypoint.address().isValid()) {
|
||||
QString addr("<address>");
|
||||
addr += _waypoint.address().street();
|
||||
|
Reference in New Issue
Block a user