Improve docstring

This commit is contained in:
Matthias Kuhn 2020-12-23 18:10:00 +01:00
parent 2b4a2332af
commit 73e385fd31
2 changed files with 8 additions and 2 deletions

View File

@ -1490,7 +1490,10 @@ Sets the coordinate transform context to ``transformContext``
QgsProject *project() const; QgsProject *project() const;
%Docstring %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 %End
signals: signals:

View File

@ -1336,7 +1336,10 @@ class CORE_EXPORT QgsMapLayer : public QObject
#endif #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; QgsProject *project() const;