Skip to content

Commit

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

Please sign in to comment.