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

23 lines
416 B
C
Raw Normal View History

2015-10-05 01:43:48 +02:00
#ifndef POIITEM_H
#define POIITEM_H
#include <QGraphicsItem>
class POIItem : public QGraphicsItem
{
public:
2015-10-17 01:33:02 +02:00
POIItem(const QString &text, QGraphicsItem *parent = 0);
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();
QString _text;
QRectF _boundingRect;
};
#endif // POIITEM_H