Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
VSI::ZoomButton Class Reference

Scene zoom in/out widget. More...

#include <Plugin-VSI/scene/zoomButton.hh>

Inheritance diagram for VSI::ZoomButton:

Public Types

enum  Type { In, Out }
 Zoom type.

Public Member Functions

 ZoomButton (GraphicsScene *_scene, QGraphicsItem *_parent, Type _type)
 ~ZoomButton ()
void activate (QPointF _pos)
 Activates the timer for zoom with center at _pos (will be called if an element is moved above)
void deactivate ()
 Stop the timer.
virtual void setGeometry (const QRectF &_rect)
 Sets the geometry.

Protected Member Functions

virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *_event)
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event)
virtual void mousePressEvent (QGraphicsSceneMouseEvent *_event)
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *_event)
virtual void wheelEvent (QGraphicsSceneWheelEvent *_event)
virtual QSizeF sizeHint (Qt::SizeHint _which, const QSizeF &_constraint=QSizeF()) const

Private Slots

void timeout ()

Private Attributes

Type type_
QTimer timer_
QPointF pos_

Detailed Description

Scene zoom in/out widget.

Definition at line 66 of file zoomButton.hh.

The documentation for this class was generated from the following files: