valentina_old/widgets/vgraphicssimpletextitem.h

21 lines
710 B
C
Raw Normal View History

2013-07-13 12:51:31 +02:00
#ifndef VGRAPHICSSIMPLETEXTITEM_H
#define VGRAPHICSSIMPLETEXTITEM_H
#include <QGraphicsSimpleTextItem>
class VGraphicsSimpleTextItem : public QObject, public QGraphicsSimpleTextItem
{
Q_OBJECT
public:
2013-07-28 00:18:06 +02:00
VGraphicsSimpleTextItem(QGraphicsItem * parent = 0);
VGraphicsSimpleTextItem( const QString & text, QGraphicsItem * parent = 0 );
2013-07-13 12:51:31 +02:00
signals:
2013-07-28 00:18:06 +02:00
void NameChangePosition(const QPointF pos);
2013-07-13 12:51:31 +02:00
protected:
2013-07-28 00:18:06 +02:00
QVariant itemChange ( GraphicsItemChange change, const QVariant &value );
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
2013-07-13 12:51:31 +02:00
};
#endif // VGRAPHICSSIMPLETEXTITEM_H