Skip to content

Commit

Permalink
Better doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jan 14, 2020
1 parent 952d704 commit 8b62eb9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Expand Up @@ -220,7 +220,7 @@ Returns a list of available resolution methods.
.. versionadded:: 3.12
%End

virtual QStringList resolutionMethods() const;
virtual QStringList resolutionMethods() const /Deprecated/;
%Docstring
Returns a list of descriptions for available resolutions for errors.
The index will be passed as ``method`` to :py:func:`fixError`.
Expand Down
Expand Up @@ -11,7 +11,7 @@
class QgsGeometryCheckResolutionMethod
{
%Docstring
This class implements a fix for problems detected in geometry checks.
This class implements a resolution for problems detected in geometry checks.

.. versionadded:: 3.12
%End
Expand Down
3 changes: 2 additions & 1 deletion src/analysis/vector/geometry_checker/qgsgeometrycheck.h
Expand Up @@ -308,6 +308,7 @@ class ANALYSIS_EXPORT QgsGeometryCheck
* Fixes the error \a error with the specified \a method.
* Is executed on the main thread.
*
* \see availableResolutionMethods()
* \since QGIS 3.4
*/
virtual void fixError( const QMap<QString, QgsFeaturePool *> &featurePools, QgsGeometryCheckError *error, int method, const QMap<QString, int> &mergeAttributeIndices, Changes &changes SIP_INOUT ) const SIP_SKIP;
Expand All @@ -326,7 +327,7 @@ class ANALYSIS_EXPORT QgsGeometryCheck
* \deprecated since QGIS 3.12, use availableResolutionMethods() instead
* \since QGIS 3.4
*/
Q_DECL_DEPRECATED virtual QStringList resolutionMethods() const;
Q_DECL_DEPRECATED virtual QStringList resolutionMethods() const SIP_DEPRECATED;

/**
* Returns a human readable description for this check.
Expand Down
Expand Up @@ -20,7 +20,7 @@
#include "qgis_analysis.h"

/**
* This class implements a fix for problems detected in geometry checks.
* This class implements a resolution for problems detected in geometry checks.
*
* \since QGIS 3.12
*/
Expand Down

0 comments on commit 8b62eb9

Please sign in to comment.