1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/graphitem.h

21 lines
383 B
C
Raw Normal View History

#ifndef GRAPHITEM_H
#define GRAPHITEM_H
#include <QGraphicsPathItem>
class GraphItem : public QGraphicsPathItem
{
public:
GraphItem(const QPainterPath &path, QGraphicsItem * parent = 0)
: QGraphicsPathItem(path, parent) {_id = 0;}
2016-08-19 19:48:44 +02:00
int id() const {return _id;}
void setId(int id) {_id = id;}
2016-08-19 19:48:44 +02:00
void setColor(const QColor &color);
private:
int _id;
};
#endif // GRAPHITEM_H