61 if ( qobject_cast<QgsPlotToolPan *>( sipCpp ) !=
nullptr )
62 sipType = sipType_QgsPlotToolPan;
63 else if ( qobject_cast<QgsPlotToolZoom *>( sipCpp ) !=
nullptr )
64 sipType = sipType_QgsPlotToolZoom;
65 else if ( qobject_cast<QgsPlotTool *>( sipCpp ) !=
nullptr )
66 sipType = sipType_QgsPlotTool;
130 virtual void wheelEvent( QWheelEvent *event );
139 virtual void keyPressEvent( QKeyEvent *event );
148 virtual void keyReleaseEvent( QKeyEvent *event );
155 virtual bool gestureEvent( QGestureEvent *event );
162 virtual bool canvasToolTipEvent( QHelpEvent *event );
167 bool isActive()
const;
172 virtual void activate();
177 virtual void deactivate();
192 void setAction( QAction *action );
204 void setCursor(
const QCursor &cursor );
222 virtual bool populateContextMenuWithEvent( QMenu *menu,
QgsPlotMouseEvent *event );
256 bool isClickAndDrag( QPoint startViewPoint, QPoint endViewPoint )
const;
261 static QPointF constrainPointToRect( QPointF point,
const QRectF &rect );
273 QCursor mCursor = Qt::ArrowCursor;