1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 23:03:22 +02:00
GPXSee/src/poiitem.h

25 lines
490 B
C
Raw Normal View History

2015-10-05 01:43:48 +02:00
#ifndef POIITEM_H
#define POIITEM_H
#include <QGraphicsItem>
2016-02-12 10:09:17 +01:00
#include "waypoint.h"
2015-10-05 01:43:48 +02:00
class POIItem : public QGraphicsItem
{
public:
POIItem(const WayPoint &entry, QGraphicsItem *parent = 0);
const WayPoint &entry() const {return _entry;}
2015-10-05 01:43:48 +02:00
QRectF boundingRect() const {return _boundingRect;}
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QWidget *widget);
private:
void updateBoundingRect();
WayPoint _entry;
2015-10-05 01:43:48 +02:00
QRectF _boundingRect;
};
#endif // POIITEM_H