QgsMapToolZoom class
A map tool for zooming into the map.
Contents
Base classes
- class QgsMapTool
- Abstract base class for all map tools.
Constructors, destructors, conversion operators
- QgsMapToolZoom(QgsMapCanvas* canvas, bool zoomOut)
- constructor
Public functions
- void canvasMoveEvent(QgsMapMouseEvent* e) override
- Mouse move event for overriding. Default implementation does nothing.
- void canvasPressEvent(QgsMapMouseEvent* e) override
- Mouse press event for overriding. Default implementation does nothing.
- void canvasReleaseEvent(QgsMapMouseEvent* e) override
- Mouse release event for overriding. Default implementation does nothing.
- void deactivate() override
- called when map tool is being deactivated
- auto flags() const -> Flags override
- Returns the flags for the map tool.
- void keyPressEvent(QKeyEvent* e) override
- Key event for overriding. Default implementation does nothing.
- void keyReleaseEvent(QKeyEvent* e) override
- Key event for overriding. Default implementation does nothing.
Protected variables
- bool mDragging
- Flag to indicate a map canvas drag operation is taking place.
- bool mNativeZoomOut
- native tool
- bool mZoomOut
- indicates whether we're zooming in or out
- QRect mZoomRect
- stores actual zoom rect
Function documentation
Flags QgsMapToolZoom:: flags() const override
Returns the flags for the map tool.