mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Compare commits
2 Commits
0a281f8ca8
...
26d2403fc0
Author | SHA1 | Date | |
---|---|---|---|
26d2403fc0 | |||
334f191fb4 |
@ -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;
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user