From b4497aaa3efee8184483907ef98f633ced5d0e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 24 Apr 2025 23:51:31 +0200 Subject: [PATCH] Silence warning when compiling on Qt >= 6.9 --- src/map/ozf.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map/ozf.cpp b/src/map/ozf.cpp index 4d7225d1..9497737b 100644 --- a/src/map/ozf.cpp +++ b/src/map/ozf.cpp @@ -232,7 +232,11 @@ QPixmap OZF::tile(int zoom, int x, int y) tileSize().height(), QImage::Format_Indexed8); img.setColorTable(z.palette); +#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0) return QPixmap::fromImage(img.mirrored()); +#else // QT 6.9 + return QPixmap::fromImage(img.flipped()); +#endif // QT 6.9 } QSize OZF::size(int zoom) const