1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-04-28 07:47:44 +02:00

Silence warning when compiling on Qt >= 6.9

This commit is contained in:
Martin Tůma 2025-04-24 23:51:31 +02:00
parent f90ac6a37e
commit b4497aaa3e

View File

@ -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