Skip to content
Permalink
Browse files

Improve docstring

  • Loading branch information
m-kuhn committed Dec 23, 2020
1 parent 2b4a233 commit 73e385fd3132314f2d3aa0ea050bb573ca8c0fa0
Showing with 8 additions and 2 deletions.
  1. +4 −1 python/core/auto_generated/qgsmaplayer.sip.in
  2. +4 −1 src/core/qgsmaplayer.h
@@ -1490,7 +1490,10 @@ Sets the coordinate transform context to ``transformContext``

QgsProject *project() const;
%Docstring
Returns the parent project if available.
Returns the parent project if this map layer is added to a project.
Otherwise returns ``None``

.. versionadded:: 3.18
%End

signals:
@@ -1336,7 +1336,10 @@ class CORE_EXPORT QgsMapLayer : public QObject
#endif

/**
* Returns the parent project if available.
* Returns the parent project if this map layer is added to a project.
* Otherwise returns NULLPTR
*
* \since QGIS 3.18
*/
QgsProject *project() const;

0 comments on commit 73e385f

Please sign in to comment.
You can’t perform that action at this time.