mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-05-14 15:17:32 +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 (!style.img().isNull()) {
|
||||||
if (poly.flags & MapData::Poly::Invert)
|
if (poly.flags & MapData::Poly::Invert)
|
||||||
BitmapLine::drawr(painter, poly.points, style.img());
|
BitmapLine::drawR(painter, poly.points, style.img());
|
||||||
else
|
else
|
||||||
BitmapLine::draw(painter, poly.points, style.img());
|
BitmapLine::draw(painter, poly.points, style.img());
|
||||||
} else if (style.foreground() != Qt::NoPen) {
|
} 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)
|
const QImage &img)
|
||||||
{
|
{
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
|
@ -11,7 +11,7 @@ class QPainterPath;
|
|||||||
namespace BitmapLine
|
namespace BitmapLine
|
||||||
{
|
{
|
||||||
void draw(QPainter *painter, const QPolygonF &line, const QImage &img);
|
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,
|
void draw(QPainter *painter, const QVector<QPolygonF> &lines,
|
||||||
const QImage &img);
|
const QImage &img);
|
||||||
void draw(QPainter *painter, const QPainterPath &line, const QImage &img);
|
void draw(QPainter *painter, const QPainterPath &line, const QImage &img);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user