1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-19 12:12:08 +01:00
GPXSee/src/GUI/markeritem.h

23 lines
391 B
C
Raw Normal View History

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