2015-10-05 01:43:48 +02:00
|
|
|
#ifndef MARKERITEM_H
|
|
|
|
#define MARKERITEM_H
|
|
|
|
|
|
|
|
#include <QGraphicsItem>
|
2017-12-03 00:36:52 +01:00
|
|
|
#include <QColor>
|
2015-10-05 01:43:48 +02:00
|
|
|
|
|
|
|
class MarkerItem : public QGraphicsItem
|
|
|
|
{
|
|
|
|
public:
|
2015-10-17 01:33:02 +02:00
|
|
|
MarkerItem(QGraphicsItem *parent = 0);
|
2015-10-05 01:43:48 +02:00
|
|
|
|
|
|
|
QRectF boundingRect() const;
|
|
|
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
|
|
|
QWidget *widget);
|
2017-12-03 00:36:52 +01:00
|
|
|
|
|
|
|
void setColor(const QColor &color);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QColor _color;
|
2015-10-05 01:43:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MARKERITEM_H
|