1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
26d2403fc0 Code cleanup 2024-02-18 15:05:54 +01:00
334f191fb4 Improved debug code 2024-02-18 11:29:51 +01:00
3 changed files with 6 additions and 4 deletions

View File

@ -396,6 +396,7 @@ void RasterTile::render()
//painter.setPen(Qt::red); //painter.setPen(Qt::red);
//painter.setBrush(Qt::NoBrush); //painter.setBrush(Qt::NoBrush);
//painter.setRenderHint(QPainter::Antialiasing, false);
//painter.drawRect(QRect(_rect.topLeft(), _pixmap.size())); //painter.drawRect(QRect(_rect.topLeft(), _pixmap.size()));
_valid = true; _valid = true;

View File

@ -345,7 +345,8 @@ QString ENCAtlas::key(int zoom, const QPoint &xy) const
void ENCAtlas::draw(QPainter *painter, const QRectF &rect, Flags flags) void ENCAtlas::draw(QPainter *painter, const QRectF &rect, Flags flags)
{ {
Q_UNUSED(flags); AtlasData *data = _data.value(_usage);
Range zr(zooms(_usage));
QPointF tl(floor(rect.left() / TILE_SIZE) * TILE_SIZE, QPointF tl(floor(rect.left() / TILE_SIZE) * TILE_SIZE,
floor(rect.top() / TILE_SIZE) * TILE_SIZE); floor(rect.top() / TILE_SIZE) * TILE_SIZE);
QSizeF s(rect.right() - tl.x(), rect.bottom() - tl.y()); QSizeF s(rect.right() - tl.x(), rect.bottom() - tl.y());
@ -365,8 +366,8 @@ void ENCAtlas::draw(QPainter *painter, const QRectF &rect, Flags flags)
painter->drawPixmap(ttl, pm); painter->drawPixmap(ttl, pm);
else else
tiles.append(RasterTile(_projection, _transform, _style, tiles.append(RasterTile(_projection, _transform, _style,
_data.value(_usage), _zoom, zooms(_usage), data, _zoom, zr, QRect(ttl, QSize(TILE_SIZE, TILE_SIZE)),
QRect(ttl, QSize(TILE_SIZE, TILE_SIZE)), _tileRatio)); _tileRatio));
} }
} }

View File

@ -109,7 +109,7 @@ void TextPointItem::paint(QPainter *painter) const
} }
//painter->setPen(Qt::red); //painter->setPen(Qt::red);
//painter.setBrush(Qt::NoBrush); //painter->setBrush(Qt::NoBrush);
//painter->setRenderHint(QPainter::Antialiasing, false); //painter->setRenderHint(QPainter::Antialiasing, false);
//painter->drawRect(_rect); //painter->drawRect(_rect);
} }