Skip to content

Commit fc2bf52

Browse files
author
timlinux
committed
Added some comments based on chats with Martin
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5127 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a1116cc commit fc2bf52

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/gui/qgsmaptool.h

+6
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,16 @@ class QgsMapTool
4646
//! Called when rendering has finished
4747
virtual void renderComplete() {}
4848

49+
/** Use this to associate a button, toolbutton, menu entry etc
50+
* that inherits qaction to this maptool. Then when the setMapTool
51+
* method of mapcanvas is called the action state will be set to on.
52+
* Usually this will cause e.g. a toolbutton to appear pressed in and
53+
* the previously used toolbutton to pop out. */
4954
void setAction(QAction* action) { mAction = action; }
5055

5156
QAction* action() { return mAction; }
5257

58+
/** TODO change this method name to bool isZoomTool() ???? */
5359
virtual QString toolName() { return "generic tool"; }
5460

5561
//! called when set as currently active map tool

0 commit comments

Comments
 (0)