mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-10-07 07:13:21 +02:00
20 lines
340 B
C
20 lines
340 B
C
|
#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;}
|
||
|
|
||
|
int id() {return _id;}
|
||
|
void setId(int id) {_id = id;}
|
||
|
|
||
|
private:
|
||
|
int _id;
|
||
|
};
|
||
|
|
||
|
#endif // GRAPHITEM_H
|