mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-09 00:04:30 -05:00
Improve docstring
This commit is contained in:
parent
2b4a2332af
commit
73e385fd31
@ -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:
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user