valentina_old/widgets/vgraphicssimpletextitem.h

27 lines
957 B
C
Raw Normal View History

2013-07-13 12:51:31 +02:00
#ifndef VGRAPHICSSIMPLETEXTITEM_H
#define VGRAPHICSSIMPLETEXTITEM_H
2013-08-20 12:26:02 +02:00
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
2013-07-13 12:51:31 +02:00
#include <QGraphicsSimpleTextItem>
2013-08-20 12:26:02 +02:00
#pragma GCC diagnostic pop
2013-07-13 12:51:31 +02:00
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