1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00
GPXSee/src/sliderinfoitem.h
2015-10-17 01:33:02 +02:00

25 lines
467 B
C++

#ifndef SLIDERINFOITEM_H
#define SLIDERINFOITEM_H
#include <QGraphicsItem>
class SliderInfoItem : public QGraphicsItem
{
public:
SliderInfoItem(QGraphicsItem *parent = 0);
QRectF boundingRect() const {return _boundingRect;}
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QWidget *widget);
void setText(const QString &text);
private:
void updateBoundingRect();
QString _text;
QRectF _boundingRect;
};
#endif // SLIDERINFOITEM_H