mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-17 16:20:48 +01:00
25 lines
467 B
C
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
|