add \see and \since in comments

This commit is contained in:
Antoine 2021-09-22 11:18:29 +02:00 committed by Nyall Dawson
parent 38b504045e
commit 968db20b82
2 changed files with 7 additions and 0 deletions

View File

@ -387,6 +387,8 @@ Returns the description for the parameter. This is the user-visible string
used to identify this parameter.
.. seealso:: :py:func:`setDescription`
.. seealso:: :py:func:`descriptionAsPythonString`
%End
void setDescription( const QString &description );
@ -516,6 +518,8 @@ If there are quotes in the description, they are escaped if necessary.
The around quote could be single or double.
.. seealso:: :py:func:`description`
.. versionadded:: 3.24
%End
virtual QString valueAsPythonString( const QVariant &value, QgsProcessingContext &context ) const;

View File

@ -496,6 +496,7 @@ class CORE_EXPORT QgsProcessingParameterDefinition
* Returns the description for the parameter. This is the user-visible string
* used to identify this parameter.
* \see setDescription()
* \see descriptionAsPythonString()
*/
QString description() const { return mDescription; }
@ -611,6 +612,8 @@ class CORE_EXPORT QgsProcessingParameterDefinition
* If there are quotes in the description, they are escaped if necessary.
* The around quote could be single or double.
* \see description()
*
* \since QGIS 3.24
*/
QString descriptionAsPythonString() const;