mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
23 lines
391 B
C++
23 lines
391 B
C++
#ifndef MARKERITEM_H
|
|
#define MARKERITEM_H
|
|
|
|
#include <QGraphicsItem>
|
|
#include <QColor>
|
|
|
|
class MarkerItem : public QGraphicsItem
|
|
{
|
|
public:
|
|
MarkerItem(QGraphicsItem *parent = 0);
|
|
|
|
QRectF boundingRect() const;
|
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
|
QWidget *widget);
|
|
|
|
void setColor(const QColor &color);
|
|
|
|
private:
|
|
QColor _color;
|
|
};
|
|
|
|
#endif // MARKERITEM_H
|