1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00
GPXSee/src/slideritem.h
2016-03-19 17:24:53 +01:00

33 lines
593 B
C++

#ifndef SLIDERITEM_H
#define SLIDERITEM_H
#include <QGraphicsItem>
class SliderItem : public QGraphicsObject
{
Q_OBJECT
public:
SliderItem(QGraphicsObject *parent = 0);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QWidget *widget);
const QRectF &area() const {return _area;}
void setArea(const QRectF &area) {_area = area;}
void clear();
signals:
void positionChanged(const QPointF&);
protected:
QVariant itemChange(GraphicsItemChange change, const QVariant &value);
private:
QRectF _area;
};
#endif // SLIDERITEM_H