mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-26 08:24:24 +02:00
Added support for Qt6
Removed support for Qt4 and Qt5 < 5.12
This commit is contained in:
@ -154,9 +154,21 @@ JNXMap::JNXMap(const QString &fileName, QObject *parent)
|
||||
return;
|
||||
}
|
||||
|
||||
_file.close();
|
||||
|
||||
_valid = true;
|
||||
}
|
||||
|
||||
void JNXMap::load()
|
||||
{
|
||||
_file.open(QIODevice::ReadOnly);
|
||||
}
|
||||
|
||||
void JNXMap::unload()
|
||||
{
|
||||
_file.close();
|
||||
}
|
||||
|
||||
QPointF JNXMap::ll2xy(const Coordinates &c)
|
||||
{
|
||||
const Zoom &z = _zooms.at(_zoom);
|
||||
@ -235,9 +247,7 @@ bool JNXMap::cb(Tile *tile, void *context)
|
||||
{
|
||||
Ctx *ctx = static_cast<Ctx*>(context);
|
||||
QPixmap pm(pixmap(tile, ctx->file));
|
||||
#ifdef ENABLE_HIDPI
|
||||
pm.setDevicePixelRatio(ctx->ratio);
|
||||
#endif // ENABLE_HIDPI
|
||||
ctx->painter->drawPixmap(tile->pos / ctx->ratio, pm);
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user