#ifndef GRAHICSTEXTITEM_H
#define GRAHICSTEXTITEM_H

#include <QGraphicsTextItem>

class GrahicsTextItem : public QGraphicsTextItem
{
public:
    GrahicsTextItem(QGraphicsItem * parent = 0);
    GrahicsTextItem(const QString & text, QGraphicsItem * parent = 0);
    void advance(int phase);

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
};

#endif // GRAHICSTEXTITEM_H
