1 #ifndef MARKERINFOITEM_H
2 #define MARKERINFOITEM_H
4 #include <QGraphicsItem>
10 class MarkerInfoItem
: public QGraphicsItem
19 MarkerInfoItem(QGraphicsItem
*parent
= 0);
21 QRectF
boundingRect() const {return _boundingRect
;}
22 void paint(QPainter
*painter
, const QStyleOptionGraphicsItem
*option
,
25 void setDate(const QDateTime
&date
);
26 void setCoordinates(const Coordinates
&c
);
28 void setColor(const QColor
&color
);
29 void setBackgroundColor(const QColor
&color
);
30 void drawBackground(bool draw
);
32 static void setCoordinatesFormat(const CoordinatesFormat
&format
)
36 void updateBoundingRect();
40 QColor _color
, _bgColor
;
44 static CoordinatesFormat _format
;
47 #endif // MARKERINFOITEM_H