54 #include <QGraphicsWidget>
55 #include <QGraphicsPathItem>
68 class Arrow :
public QObject,
public QGraphicsPixmapItem,
public QGraphicsLayoutItem
71 Q_INTERFACES(QGraphicsLayoutItem)
108 virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *_event);
109 virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event);
112 virtual void mousePressEvent (QGraphicsSceneMouseEvent *_event);
113 virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *_event);
116 virtual void wheelEvent (QGraphicsSceneWheelEvent *_event);
119 virtual QSizeF sizeHint ( Qt::SizeHint _which,
const QSizeF & _constraint = QSizeF())
const;
Arrow(GraphicsScene *_scene, QGraphicsItem *_parent, Direction _dir)
Constructor.
void reset()
Stop the timer.
virtual void setGeometry(const QRectF &_rect)
Sets the geometry.
Direction
Movement direction.
void activate()
Activates the timer for movement (will be called if an element is moved above)
void setHighlight(bool _highlight)
Highlights the widget if the scene can be moved in this direction.