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

25 lines
485 B
C
Raw Normal View History

2015-10-05 01:43:48 +02:00
#ifndef POIITEM_H
#define POIITEM_H
#include <QGraphicsItem>
2015-11-23 02:37:08 +01:00
#include "poi.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