mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-05-11 21:57:31 +02:00
Refactoring
This commit is contained in:
parent
f3b97cb71f
commit
7f591cb2c2
@ -208,7 +208,7 @@ void RasterTile::drawLines(QPainter *painter,
|
||||
|
||||
if (!style.img().isNull()) {
|
||||
if (poly.flags & MapData::Poly::Invert)
|
||||
BitmapLine::drawr(painter, poly.points, style.img());
|
||||
BitmapLine::drawR(painter, poly.points, style.img());
|
||||
else
|
||||
BitmapLine::draw(painter, poly.points, style.img());
|
||||
} else if (style.foreground() != Qt::NoPen) {
|
||||
|
@ -53,7 +53,7 @@ void BitmapLine::draw(QPainter *painter, const QPolygonF &line,
|
||||
}
|
||||
}
|
||||
|
||||
void BitmapLine::drawr(QPainter *painter, const QPolygonF &line,
|
||||
void BitmapLine::drawR(QPainter *painter, const QPolygonF &line,
|
||||
const QImage &img)
|
||||
{
|
||||
int offset = 0;
|
||||
|
@ -11,7 +11,7 @@ class QPainterPath;
|
||||
namespace BitmapLine
|
||||
{
|
||||
void draw(QPainter *painter, const QPolygonF &line, const QImage &img);
|
||||
void drawr(QPainter *painter, const QPolygonF &line, const QImage &img);
|
||||
void drawR(QPainter *painter, const QPolygonF &line, const QImage &img);
|
||||
void draw(QPainter *painter, const QVector<QPolygonF> &lines,
|
||||
const QImage &img);
|
||||
void draw(QPainter *painter, const QPainterPath &line, const QImage &img);
|
||||
|
Loading…
x
Reference in New Issue
Block a user