1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-27 03:29:16 +02:00

Made data styles usage configurable

This commit is contained in:
2022-09-25 02:15:24 +02:00
parent 36b5746456
commit a59e7a058d
24 changed files with 316 additions and 151 deletions

View File

@ -5,6 +5,7 @@
#include <QRectF>
#include "common/coordinates.h"
#include "common/rectc.h"
#include "style.h"
class PathPoint
{
@ -34,6 +35,12 @@ class Path : public QList<PathSegment>
public:
bool isValid() const;
RectC boundingRect() const;
const LineStyle &style() const {return _style;}
void setStyle(const LineStyle &style) {_style = style;}
private:
LineStyle _style;
};
#endif // PATH_H

View File

@ -25,6 +25,8 @@ Path Route::path() const
for (int i = 0; i < _data.size(); i++)
ps.append(PathPoint(_data.at(i).coordinates(), _distance.at(i)));
ret.setStyle(_data.style());
return ret;
}

View File

@ -607,6 +607,8 @@ Path Track::path() const
seg.distance.at(j)));
}
ret.setStyle(_data.style());
return ret;
}