21 lines
710 B
C++
21 lines
710 B
C++
#ifndef VGRAPHICSSIMPLETEXTITEM_H
|
|
#define VGRAPHICSSIMPLETEXTITEM_H
|
|
|
|
#include <QGraphicsSimpleTextItem>
|
|
|
|
class VGraphicsSimpleTextItem : public QObject, public QGraphicsSimpleTextItem
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
VGraphicsSimpleTextItem(QGraphicsItem * parent = 0);
|
|
VGraphicsSimpleTextItem( const QString & text, QGraphicsItem * parent = 0 );
|
|
signals:
|
|
void NameChangePosition(const QPointF pos);
|
|
protected:
|
|
QVariant itemChange ( GraphicsItemChange change, const QVariant &value );
|
|
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
|
|
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
|
|
};
|
|
|
|
#endif // VGRAPHICSSIMPLETEXTITEM_H
|