50 #ifndef VSI_ZOOMBUTTON_HH 51 #define VSI_ZOOMBUTTON_HH 54 #include <QGraphicsPixmapItem> 55 #include <QGraphicsLayoutItem> 66 class ZoomButton :
public QObject,
public QGraphicsPixmapItem,
public QGraphicsLayoutItem
69 Q_INTERFACES(QGraphicsLayoutItem)
99 virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *_event);
100 virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event);
103 virtual void mousePressEvent (QGraphicsSceneMouseEvent *_event);
104 virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *_event);
107 virtual void wheelEvent (QGraphicsSceneWheelEvent *_event);
110 virtual QSizeF sizeHint ( Qt::SizeHint _which,
const QSizeF & _constraint = QSizeF())
const;
virtual void setGeometry(const QRectF &_rect)
Sets the geometry.
void deactivate()
Stop the timer.
ZoomButton(GraphicsScene *_scene, QGraphicsItem *_parent, Type _type)
Constructor.
void activate(QPointF _pos)
Activates the timer for zoom with center at _pos (will be called if an element is moved above) ...
Scene zoom in/out widget.