Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow that not all mouse events of a map tool must be implemented.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5149 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 3, 2006
1 parent 2435bb7 commit 22105f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgsmaptool.h
Expand Up @@ -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() {}
Expand Down

0 comments on commit 22105f8

Please sign in to comment.