mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-06 15:42:51 +02:00
Fixed track tooltip area handling
Added some more waypoint info to waypoint tooltips. Refactoring & optimization.
This commit is contained in:
10
src/misc.cpp
10
src/misc.cpp
@ -64,3 +64,13 @@ QString distance(qreal value, Units units)
|
||||
+ UNIT_SPACE + QObject::tr("km");
|
||||
}
|
||||
}
|
||||
|
||||
QString coordinates(const QPointF &value)
|
||||
{
|
||||
QChar yH = (value.y() < 0) ? 'S' : 'N';
|
||||
QChar xH = (value.x() < 0) ? 'W' : 'E';
|
||||
|
||||
return QString::number(qAbs(value.y()), 'f', 5) + QChar(0x00B0) + " " + yH
|
||||
+ ", " + QString::number(qAbs(value.x()), 'f', 5) + QChar(0x00B0) + " "
|
||||
+ xH ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user