From 6ffc71fd36e4642271c5aaefa88661e2a7ac423f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 21 Jan 2018 00:48:34 +0100 Subject: [PATCH] Improved debuging --- src/map/transform.cpp | 6 ++++++ src/map/transform.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/map/transform.cpp b/src/map/transform.cpp index eaf48a1a..1c9ed5a5 100644 --- a/src/map/transform.cpp +++ b/src/map/transform.cpp @@ -72,3 +72,9 @@ Transform::Transform(const QList &points) else affine(points); } + +QDebug operator<<(QDebug dbg, const ReferencePoint &p) +{ + dbg.nospace() << "ReferencePoint(" << p.xy << ", " << p.pp << ")"; + return dbg.maybeSpace(); +} diff --git a/src/map/transform.h b/src/map/transform.h index 939e9bd2..951483bc 100644 --- a/src/map/transform.h +++ b/src/map/transform.h @@ -27,4 +27,6 @@ private: QString _errorString; }; +QDebug operator<<(QDebug dbg, const ReferencePoint &p); + #endif // TRANSFORM_H