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:
parent
f90ac6a37e
commit
b4497aaa3e
@ -232,7 +232,11 @@ QPixmap OZF::tile(int zoom, int x, int y)
|
|||||||
tileSize().height(), QImage::Format_Indexed8);
|
tileSize().height(), QImage::Format_Indexed8);
|
||||||
img.setColorTable(z.palette);
|
img.setColorTable(z.palette);
|
||||||
|
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
|
||||||
return QPixmap::fromImage(img.mirrored());
|
return QPixmap::fromImage(img.mirrored());
|
||||||
|
#else // QT 6.9
|
||||||
|
return QPixmap::fromImage(img.flipped());
|
||||||
|
#endif // QT 6.9
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize OZF::size(int zoom) const
|
QSize OZF::size(int zoom) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user