Skip to content

Commit

Permalink
const correction
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and troopa81 committed Sep 20, 2024
1 parent d85f3c2 commit 6bf3ee0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/PyQt6/gui/auto_generated/qgsmapcanvas.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ that this map tool won't be used any more.
You don't have to call it manually, :py:class:`QgsMapTool` takes care of it.
%End

QgsMapTool *mapTool();
QgsMapTool *mapTool() const;
%Docstring
Returns the currently active tool
%End
Expand Down
2 changes: 1 addition & 1 deletion python/gui/auto_generated/qgsmapcanvas.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ that this map tool won't be used any more.
You don't have to call it manually, :py:class:`QgsMapTool` takes care of it.
%End

QgsMapTool *mapTool();
QgsMapTool *mapTool() const;
%Docstring
Returns the currently active tool
%End
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3076,7 +3076,7 @@ void QgsMapCanvas::projectThemesChanged()

}

QgsMapTool *QgsMapCanvas::mapTool()
QgsMapTool *QgsMapCanvas::mapTool() const
{
return mMapTool;
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView, public QgsExpressionContex
void unsetMapTool( QgsMapTool *mapTool );

//! Returns the currently active tool
QgsMapTool *mapTool();
QgsMapTool *mapTool() const;

/**
* Sets the \a project linked to this canvas.
Expand Down

0 comments on commit 6bf3ee0

Please sign in to comment.