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