We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1116cc commit fc2bf52Copy full SHA for fc2bf52
src/gui/qgsmaptool.h
@@ -46,10 +46,16 @@ class QgsMapTool
46
//! Called when rendering has finished
47
virtual void renderComplete() {}
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. */
54
void setAction(QAction* action) { mAction = action; }
55
56
QAction* action() { return mAction; }
57
58
+ /** TODO change this method name to bool isZoomTool() ???? */
59
virtual QString toolName() { return "generic tool"; }
60
61
//! called when set as currently active map tool
0 commit comments