62 if ( qobject_cast<QgsPlotToolPan *>( sipCpp ) !=
nullptr )
63 sipType = sipType_QgsPlotToolPan;
64 else if ( qobject_cast<QgsPlotToolZoom *>( sipCpp ) !=
nullptr )
65 sipType = sipType_QgsPlotToolZoom;
66 else if ( qobject_cast<QgsPlotTool *>( sipCpp ) !=
nullptr )
67 sipType = sipType_QgsPlotTool;
132 virtual void wheelEvent( QWheelEvent *event );
141 virtual void keyPressEvent( QKeyEvent *event );
150 virtual void keyReleaseEvent( QKeyEvent *event );
157 virtual bool gestureEvent( QGestureEvent *event );
164 virtual bool canvasToolTipEvent( QHelpEvent *event );
169 bool isActive()
const;
174 virtual void activate();
179 virtual void deactivate();
194 void setAction( QAction *action );
206 void setCursor(
const QCursor &cursor );
224 virtual bool populateContextMenuWithEvent( QMenu *menu,
QgsPlotMouseEvent *event );
259 bool isClickAndDrag( QPoint startViewPoint, QPoint endViewPoint )
const;
264 static QPointF constrainPointToRect( QPointF point,
const QRectF &rect );
276 QCursor mCursor = Qt::ArrowCursor;