Skip to content
Permalink
Browse files

Allow that not all mouse events of a map tool must be implemented.

git-svn-id: http://svn.osgeo.org/qgis/trunk@5149 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Apr 3, 2006
1 parent 5077c25 commit d5391cf37c773e4d3b28c3e9c3cbc10d9953ba77
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/qgsmaptool.h
@@ -35,13 +35,13 @@ class QgsMapTool
virtual ~QgsMapTool();

//! Mouse move event for overriding
virtual void canvasMoveEvent(QMouseEvent * e) = 0;
virtual void canvasMoveEvent(QMouseEvent * e) { }

//! Mouse press event for overriding
virtual void canvasPressEvent(QMouseEvent * e) = 0;
virtual void canvasPressEvent(QMouseEvent * e) { }

//! Mouse release event for overriding
virtual void canvasReleaseEvent(QMouseEvent * e) = 0;
virtual void canvasReleaseEvent(QMouseEvent * e) { }

//! Called when rendering has finished
virtual void renderComplete() {}

0 comments on commit d5391cf

Please sign in to comment.
You can’t perform that action at this time.