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/qgis@5149 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Apr 3, 2006
1 parent 2435bb7 commit 22105f870ff99b49d1ee57e1dafcb70cbeb78a6d
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 22105f8

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