mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-21 10:10:49 +01:00
Log coordinates in a better usable way
This commit is contained in:
parent
465b146001
commit
2bb635a120
@ -14,7 +14,8 @@ double Coordinates::distanceTo(const Coordinates &c) const
|
|||||||
#ifndef QT_NO_DEBUG
|
#ifndef QT_NO_DEBUG
|
||||||
QDebug operator<<(QDebug dbg, const Coordinates &c)
|
QDebug operator<<(QDebug dbg, const Coordinates &c)
|
||||||
{
|
{
|
||||||
dbg.nospace() << "Coordinates(" << c.lon() << ", " << c.lat() << ")";
|
dbg.nospace() << qSetRealNumberPrecision(10) << "Coordinates(" << c.lat()
|
||||||
|
<< ", " << c.lon() << ")";
|
||||||
return dbg.space();
|
return dbg.space();
|
||||||
}
|
}
|
||||||
#endif // QT_NO_DEBUG
|
#endif // QT_NO_DEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user