Correctly deprecate method

This commit is contained in:
Nyall Dawson 2024-01-17 16:02:34 +10:00
parent 3bfe097641
commit f25a87ea3f
3 changed files with 9 additions and 6 deletions

View File

@ -1129,11 +1129,12 @@ Removes a CRS from the list of recently used CRS.
QGIS 3.36 Use :py:func:`QgsApplication.coordinateReferenceSystemRegistry()`->:py:func:`~QgsCoordinateReferenceSystem.removeRecent` instead. QGIS 3.36 Use :py:func:`QgsApplication.coordinateReferenceSystemRegistry()`->:py:func:`~QgsCoordinateReferenceSystem.removeRecent` instead.
%End %End
static void clearRecentCoordinateReferenceSystems(); static void clearRecentCoordinateReferenceSystems() /Deprecated/;
%Docstring %Docstring
Cleans the list of recently used CRS. Cleans the list of recently used CRS.
.. versionadded:: 3.32 .. deprecated::
QGIS 3.36 Use :py:func:`QgsApplication.coordinateReferenceSystemRegistry()`->:py:func:`~QgsCoordinateReferenceSystem.clearRecent` instead.
%End %End

View File

@ -1129,11 +1129,12 @@ Removes a CRS from the list of recently used CRS.
QGIS 3.36 Use :py:func:`QgsApplication.coordinateReferenceSystemRegistry()`->:py:func:`~QgsCoordinateReferenceSystem.removeRecent` instead. QGIS 3.36 Use :py:func:`QgsApplication.coordinateReferenceSystemRegistry()`->:py:func:`~QgsCoordinateReferenceSystem.removeRecent` instead.
%End %End
static void clearRecentCoordinateReferenceSystems(); static void clearRecentCoordinateReferenceSystems() /Deprecated/;
%Docstring %Docstring
Cleans the list of recently used CRS. Cleans the list of recently used CRS.
.. versionadded:: 3.32 .. deprecated::
QGIS 3.36 Use :py:func:`QgsApplication.coordinateReferenceSystemRegistry()`->:py:func:`~QgsCoordinateReferenceSystem.clearRecent` instead.
%End %End

View File

@ -1060,9 +1060,10 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
/** /**
* Cleans the list of recently used CRS. * Cleans the list of recently used CRS.
* \since QGIS 3.32 *
* \deprecated QGIS 3.36 Use QgsApplication::coordinateReferenceSystemRegistry()->clearRecent() instead.
*/ */
static void clearRecentCoordinateReferenceSystems(); Q_DECL_DEPRECATED static void clearRecentCoordinateReferenceSystems() SIP_DEPRECATED;
#ifndef SIP_RUN #ifndef SIP_RUN