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