File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,16 @@ class QgsMapTool
46
46
// ! Called when rendering has finished
47
47
virtual void renderComplete () {}
48
48
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. */
49
54
void setAction (QAction* action) { mAction = action; }
50
55
51
56
QAction* action () { return mAction ; }
52
57
58
+ /* * TODO change this method name to bool isZoomTool() ???? */
53
59
virtual QString toolName () { return " generic tool" ; }
54
60
55
61
// ! called when set as currently active map tool
You can’t perform that action at this time.
0 commit comments