From 0fe7843e52e960c7dc6c1e44701f78a09d9c1122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 14 Nov 2017 22:15:46 +0100 Subject: [PATCH] Added debug output for tiles --- src/tile.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tile.h b/src/tile.h index 383d2e31..4f10793d 100644 --- a/src/tile.h +++ b/src/tile.h @@ -3,6 +3,7 @@ #include #include +#include class Tile { @@ -20,4 +21,10 @@ private: QPixmap _pixmap; }; +inline QDebug operator<<(QDebug dbg, const Tile &tile) +{ + dbg.nospace() << "Tile(" << tile.zoom() << ", " << tile.xy() << ")"; + return dbg.maybeSpace(); +} + #endif // TILE_H