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:
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -607,6 +607,8 @@ Path Track::path() const
|
||||
seg.distance.at(j)));
|
||||
}
|
||||
|
||||
ret.setStyle(_data.style());
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user