mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-12 14:20:48 +01:00
Fixed function definitions
This commit is contained in:
parent
41e8b7094a
commit
610dd0a009
@ -138,7 +138,7 @@ static void drawArrow(QPainter *painter, const QPolygonF &polygon, uint type)
|
||||
}
|
||||
|
||||
void RasterTile::drawArrows(QPainter *painter,
|
||||
const QList<MapData::Point> &points)
|
||||
const QList<MapData::Point> &points) const
|
||||
{
|
||||
for (int i = 0; i < points.size(); i++) {
|
||||
const MapData::Point &point = points.at(i);
|
||||
@ -152,7 +152,7 @@ void RasterTile::drawArrows(QPainter *painter,
|
||||
}
|
||||
|
||||
void RasterTile::drawPolygons(QPainter *painter,
|
||||
const QList<MapData::Poly> &polygons)
|
||||
const QList<MapData::Poly> &polygons) const
|
||||
{
|
||||
for (int n = 0; n < _style->drawOrder().size(); n++) {
|
||||
for (int i = 0; i < polygons.size(); i++) {
|
||||
@ -184,7 +184,7 @@ void RasterTile::drawPolygons(QPainter *painter,
|
||||
}
|
||||
}
|
||||
|
||||
void RasterTile::drawLines(QPainter *painter, const QList<MapData::Line> &lines)
|
||||
void RasterTile::drawLines(QPainter *painter, const QList<MapData::Line> &lines) const
|
||||
{
|
||||
painter->setBrush(Qt::NoBrush);
|
||||
|
||||
@ -202,7 +202,7 @@ void RasterTile::drawLines(QPainter *painter, const QList<MapData::Line> &lines)
|
||||
}
|
||||
|
||||
void RasterTile::drawTextItems(QPainter *painter,
|
||||
const QList<TextItem*> &textItems)
|
||||
const QList<TextItem*> &textItems) const
|
||||
{
|
||||
QRectF rect(_rect);
|
||||
|
||||
@ -214,7 +214,7 @@ void RasterTile::drawTextItems(QPainter *painter,
|
||||
}
|
||||
|
||||
void RasterTile::drawSectorLights(QPainter *painter,
|
||||
const QList<SectorLight> &lights)
|
||||
const QList<SectorLight> &lights) const
|
||||
{
|
||||
for (int i = 0; i < lights.size(); i++) {
|
||||
const SectorLight &l = lights.at(i);
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
private:
|
||||
struct SectorLight
|
||||
{
|
||||
SectorLight(const Coordinates pos, Style::Color color, uint visibility,
|
||||
SectorLight(const Coordinates &pos, Style::Color color, uint visibility,
|
||||
double start, double end) : pos(pos), color(color),
|
||||
visibility(visibility), start(start), end(end) {}
|
||||
|
||||
@ -64,13 +64,11 @@ private:
|
||||
QList<SectorLight> §orLights);
|
||||
void processLines(const QList<MapData::Line> &lines,
|
||||
QList<TextItem*> &textItems);
|
||||
void drawBitmapPath(QPainter *painter, const QImage &img,
|
||||
const Polygon &polygon);
|
||||
void drawArrows(QPainter *painter, const QList<MapData::Point> &points);
|
||||
void drawPolygons(QPainter *painter, const QList<MapData::Poly> &polygons);
|
||||
void drawLines(QPainter *painter, const QList<MapData::Line> &lines);
|
||||
void drawTextItems(QPainter *painter, const QList<TextItem*> &textItems);
|
||||
void drawSectorLights(QPainter *painter, const QList<SectorLight> &lights);
|
||||
void drawArrows(QPainter *painter, const QList<MapData::Point> &points) const;
|
||||
void drawPolygons(QPainter *painter, const QList<MapData::Poly> &polygons) const;
|
||||
void drawLines(QPainter *painter, const QList<MapData::Line> &lines) const;
|
||||
void drawTextItems(QPainter *painter, const QList<TextItem*> &textItems) const;
|
||||
void drawSectorLights(QPainter *painter, const QList<SectorLight> &lights) const;
|
||||
|
||||
static bool polyCb(MapData *data, void *context);
|
||||
static bool pointCb(MapData *data, void *context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user