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

Some more tool tips related changes

This commit is contained in:
2016-08-02 00:28:56 +02:00
parent 7de08d116a
commit dafadbab60
12 changed files with 140 additions and 36 deletions

View File

@ -65,6 +65,15 @@ QString distance(qreal value, Units units)
}
}
QString elevation(qreal value, Units units)
{
if (units == Metric)
return QString::number(value, 'f', 0) + UNIT_SPACE + QObject::tr("m");
else
return QString::number(value * M2FT, 'f', 0) + UNIT_SPACE
+ QObject::tr("ft");
}
QString coordinates(const QPointF &value)
{
QChar yH = (value.y() < 0) ? 'S' : 'N';