#ifndef POIITEM_H #define POIITEM_H #include #include "poi.h" class POIItem : public QGraphicsItem { public: POIItem(const Entry &entry, QGraphicsItem *parent = 0); const Entry &entry() const {return _entry;} QRectF boundingRect() const {return _boundingRect;} void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); private: void updateBoundingRect(); Entry _entry; QRectF _boundingRect; }; #endif // POIITEM_H