1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Removed obsolete code

This commit is contained in:
Martin Tůma 2017-12-03 10:24:24 +01:00
parent 92e772a02b
commit 179f2f1451

View File

@ -540,12 +540,6 @@ void OfflineMap::drawTiled(QPainter *painter, const QRectF &rect)
int x = tl.x() + i * _tileSize.width(); int x = tl.x() + i * _tileSize.width();
int y = tl.y() + j * _tileSize.height(); int y = tl.y() + j * _tileSize.height();
if (!QRectF(QPointF(x, y), _tileSize).intersects(bounds())) {
painter->fillRect(QRectF(QPoint(x, y), _tileSize),
_backgroundColor);
continue;
}
QString tileName(_tileName.arg(QString::number(x), QString tileName(_tileName.arg(QString::number(x),
QString::number(y))); QString::number(y)));
QPixmap pixmap; QPixmap pixmap;
@ -584,12 +578,6 @@ void OfflineMap::drawOZF(QPainter *painter, const QRectF &rect)
int x = tl.x() + i * _ozf.tileSize().width(); int x = tl.x() + i * _ozf.tileSize().width();
int y = tl.y() + j * _ozf.tileSize().height(); int y = tl.y() + j * _ozf.tileSize().height();
if (!QRectF(QPointF(x, y), _ozf.tileSize()).intersects(bounds())) {
painter->fillRect(QRectF(QPoint(x, y), _ozf.tileSize()),
_backgroundColor);
continue;
}
QPixmap pixmap; QPixmap pixmap;
QString key = _ozf.fileName() + "/" + QString::number(_zoom) + "_" QString key = _ozf.fileName() + "/" + QString::number(_zoom) + "_"
+ QString::number(x) + "_" + QString::number(y); + QString::number(x) + "_" + QString::number(y);