Skip to content

Commit

Permalink
[qt6] compatibility with [[deprecated]] attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 27, 2021
1 parent 1a59efb commit 10e9de1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsmaprenderercache.sip.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Invalidates the cache contents, clearing all cached images.
.. seealso:: :py:func:`clearCacheImage` .. seealso:: :py:func:`clearCacheImage`
%End %End


bool init( const QgsRectangle &extent, double scale ) /Deprecated/; bool init( const QgsRectangle &extent, double scale ) /Deprecated/;
%Docstring %Docstring
Initialize cache: sets extent and scale parameters and clears the cache if any Initialize cache: sets extent and scale parameters and clears the cache if any
parameters have changed since last initialization. parameters have changed since last initialization.
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ Reset the label decimal places to a numberbased on the minimum class interval
%End %End




static QgsGraduatedSymbolRenderer *createRenderer( QgsVectorLayer *vlayer, static QgsGraduatedSymbolRenderer *createRenderer( QgsVectorLayer *vlayer,
const QString &attrName, const QString &attrName,
int classes, int classes,
Mode mode, Mode mode,
Expand Down
8 changes: 2 additions & 6 deletions python/core/auto_generated/symbology/qgsrendererrange.sip.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -75,18 +75,14 @@ typedef QList<QgsRendererRange> QgsRangeList;




class QgsRendererRangeLabelFormat /Deprecated/ class QgsRendererRangeLabelFormat /Deprecated/
{ %Docstring
%Docstring(signature="appended")


.. versionadded:: 2.6 .. versionadded:: 2.6


.. deprecated:: QGIS 3.10 .. deprecated:: QGIS 3.10
use :py:class:`QgsClassificationMethod` instead use :py:class:`QgsClassificationMethod` instead
%End %End

{
%TypeHeaderCode
#include "qgsrendererrange.h"
%End
public: public:
QgsRendererRangeLabelFormat(); QgsRendererRangeLabelFormat();
QgsRendererRangeLabelFormat( const QString &format, int precision = 4, bool trimTrailingZeroes = false ); QgsRendererRangeLabelFormat( const QString &format, int precision = 4, bool trimTrailingZeroes = false );
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsmaprenderercache.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class CORE_EXPORT QgsMapRendererCache : public QObject
* \returns flag whether the parameters are the same as last time * \returns flag whether the parameters are the same as last time
* \deprecated since QGIS 3.18 - will be removed in QGIS 4.0. Use the updateParameters() and clear() * \deprecated since QGIS 3.18 - will be removed in QGIS 4.0. Use the updateParameters() and clear()
*/ */
bool Q_DECL_DEPRECATED init( const QgsRectangle &extent, double scale ) SIP_DEPRECATED; Q_DECL_DEPRECATED bool init( const QgsRectangle &extent, double scale ) SIP_DEPRECATED;


/** /**
* Sets extent and scale parameters * Sets extent and scale parameters
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology/qgsgraduatedsymbolrenderer.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class CORE_EXPORT QgsGraduatedSymbolRenderer : public QgsFeatureRenderer
* \returns new QgsGraduatedSymbolRenderer object * \returns new QgsGraduatedSymbolRenderer object
* \deprecated since QGIS 3.10 * \deprecated since QGIS 3.10
*/ */
static Q_DECL_DEPRECATED QgsGraduatedSymbolRenderer *createRenderer( QgsVectorLayer *vlayer, Q_DECL_DEPRECATED static QgsGraduatedSymbolRenderer *createRenderer( QgsVectorLayer *vlayer,
const QString &attrName, const QString &attrName,
int classes, int classes,
Mode mode, Mode mode,
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology/qgsrendererrange.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ typedef QList<QgsRendererRange> QgsRangeList;
* \since QGIS 2.6 * \since QGIS 2.6
* \deprecated since QGIS 3.10, use QgsClassificationMethod instead * \deprecated since QGIS 3.10, use QgsClassificationMethod instead
*/ */
class Q_DECL_DEPRECATED CORE_EXPORT QgsRendererRangeLabelFormat SIP_DEPRECATED class CORE_EXPORT Q_DECL_DEPRECATED QgsRendererRangeLabelFormat SIP_DEPRECATED
{ {
public: public:
QgsRendererRangeLabelFormat(); QgsRendererRangeLabelFormat();
Expand Down

0 comments on commit 10e9de1

Please sign in to comment.