Skip to content

Commit

Permalink
doc(Deprecated): Fix missing \deprecated instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Dec 11, 2024
1 parent 6502e28 commit 0e804d1
Show file tree
Hide file tree
Showing 18 changed files with 84 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ If ``color`` is an invalid color then the default icon color will be used.

virtual QWidget *paramWidget() /Factory,Deprecated/;

%Docstring

.. deprecated:: 3.20
%End
virtual bool hasDragEnabled() const;
virtual QgsMimeDataUtils::UriList mimeUris() const;

Expand Down Expand Up @@ -217,8 +221,6 @@ Browser parameter widget implementation for directory items.





/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
2 changes: 2 additions & 0 deletions python/PyQt6/core/auto_generated/geometry/qgsgeometry.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ Sets the underlying geometry store. Ownership of geometry is transferred.
.. seealso:: :py:func:`get`

.. seealso:: :py:func:`constGet`

.. deprecated:: 3.0
%End

bool isNull() const /HoldGIL/;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,14 @@ The caller takes responsibility for deleting the returned object.

virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget );


virtual int numberExportLayers() const /Deprecated/;

%Docstring

.. deprecated:: 3.10
%End

virtual void startLayeredExport();

virtual void stopLayeredExport();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@ Bilinear Raster Resampler
public:

QgsBilinearRasterResampler();

virtual void resample( const QImage &srcImage, QImage &dstImage ) /Deprecated/;

%Docstring

.. deprecated:: 3.12

Use :py:func:`~QgsBilinearRasterResampler.resampleV2` instead.
%End

virtual QImage resampleV2( const QImage &source, const QSize &size );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ Cubic Raster Resampler.

virtual QImage resampleV2( const QImage &source, const QSize &size );


virtual void resample( const QImage &srcImage, QImage &dstImage ) /Deprecated/;

%Docstring

.. deprecated:: 3.12

Use :py:func:`~QgsCubicRasterResampler.resampleV2` instead.
%End
virtual QString type() const;

virtual int tileBufferPixels() const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ A scale bar style that draws text in the form of '1:XXXXX'.

virtual QSizeF calculateBoxSize( const QgsScaleBarSettings &settings, const QgsScaleBarRenderer::ScaleBarContext &scaleContext ) const /Deprecated/;

%Docstring

.. deprecated:: 3.14

Use the one with render context instead.
%End

};

Expand Down
6 changes: 4 additions & 2 deletions python/core/auto_generated/browser/qgsdirectoryitem.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ If ``color`` is an invalid color then the default icon color will be used.

virtual QWidget *paramWidget() /Factory,Deprecated/;

%Docstring

.. deprecated:: 3.20
%End
virtual bool hasDragEnabled() const;
virtual QgsMimeDataUtils::UriList mimeUris() const;

Expand Down Expand Up @@ -217,8 +221,6 @@ Browser parameter widget implementation for directory items.





/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
2 changes: 2 additions & 0 deletions python/core/auto_generated/geometry/qgsgeometry.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ Sets the underlying geometry store. Ownership of geometry is transferred.
.. seealso:: :py:func:`get`

.. seealso:: :py:func:`constGet`

.. deprecated:: 3.0
%End

bool isNull() const /HoldGIL/;
Expand Down
6 changes: 6 additions & 0 deletions python/core/auto_generated/layout/qgslayoutitemmap.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,14 @@ The caller takes responsibility for deleting the returned object.

virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget );


virtual int numberExportLayers() const /Deprecated/;

%Docstring

.. deprecated:: 3.10
%End

virtual void startLayeredExport();

virtual void stopLayeredExport();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@ Bilinear Raster Resampler
public:

QgsBilinearRasterResampler();

virtual void resample( const QImage &srcImage, QImage &dstImage ) /Deprecated/;

%Docstring

.. deprecated:: 3.12

Use :py:func:`~QgsBilinearRasterResampler.resampleV2` instead.
%End

virtual QImage resampleV2( const QImage &source, const QSize &size );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ Cubic Raster Resampler.

virtual QImage resampleV2( const QImage &source, const QSize &size );


virtual void resample( const QImage &srcImage, QImage &dstImage ) /Deprecated/;

%Docstring

.. deprecated:: 3.12

Use :py:func:`~QgsCubicRasterResampler.resampleV2` instead.
%End
virtual QString type() const;

virtual int tileBufferPixels() const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ A scale bar style that draws text in the form of '1:XXXXX'.

virtual QSizeF calculateBoxSize( const QgsScaleBarSettings &settings, const QgsScaleBarRenderer::ScaleBarContext &scaleContext ) const /Deprecated/;

%Docstring

.. deprecated:: 3.14

Use the one with render context instead.
%End

};

Expand Down
5 changes: 3 additions & 2 deletions src/core/browser/qgsdirectoryitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ class CORE_EXPORT QgsDirectoryItem : public QgsDataCollectionItem
*/
static void setCustomColor( const QString &directory, const QColor &color );

/**
* \deprecated QGIS 3.20
*/
Q_DECL_DEPRECATED QWidget *paramWidget() override SIP_FACTORY SIP_DEPRECATED;
bool hasDragEnabled() const override { return true; }
QgsMimeDataUtils::UriList mimeUris() const override;
Expand Down Expand Up @@ -273,5 +276,3 @@ class CORE_EXPORT QgsProjectHomeItem : public QgsDirectoryItem
#endif

#endif // QGSDATAITEM_H


1 change: 1 addition & 0 deletions src/core/geometry/qgsgeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ class CORE_EXPORT QgsGeometry
*
* \see get()
* \see constGet()
* \deprecated QGIS 3.0
*/
void set( QgsAbstractGeometry *geometry SIP_TRANSFER ) SIP_DEPRECATED;

Expand Down
5 changes: 5 additions & 0 deletions src/core/layout/qgslayoutitemmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,12 @@ class CORE_EXPORT QgsLayoutItemMap : public QgsLayoutItem, public QgsTemporalRan

// for now, map items behave a bit differently and don't implement draw. TODO - see if we can avoid this
void paint( QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget ) override;

/**
* \deprecated QGIS 3.10
*/
Q_DECL_DEPRECATED int numberExportLayers() const override SIP_DEPRECATED;

void startLayeredExport() override;
void stopLayeredExport() override;
bool nextExportPart() override;
Expand Down
4 changes: 4 additions & 0 deletions src/core/raster/qgsbilinearrasterresampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ class CORE_EXPORT QgsBilinearRasterResampler: public QgsRasterResamplerV2
public:

QgsBilinearRasterResampler() = default;

/**
* \deprecated QGIS 3.12. Use resampleV2() instead.
*/
Q_DECL_DEPRECATED void resample( const QImage &srcImage, QImage &dstImage ) override SIP_DEPRECATED;

QImage resampleV2( const QImage &source, const QSize &size ) override;
Expand Down
4 changes: 4 additions & 0 deletions src/core/raster/qgscubicrasterresampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class CORE_EXPORT QgsCubicRasterResampler: public QgsRasterResamplerV2
QgsCubicRasterResampler *clone() const override SIP_FACTORY;

QImage resampleV2( const QImage &source, const QSize &size ) override;

/**
* \deprecated QGIS 3.12. Use resampleV2() instead.
*/
Q_DECL_DEPRECATED void resample( const QImage &srcImage, QImage &dstImage ) override SIP_DEPRECATED;
QString type() const override;
int tileBufferPixels() const override;
Expand Down
3 changes: 3 additions & 0 deletions src/core/scalebar/qgsnumericscalebarrenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class CORE_EXPORT QgsNumericScaleBarRenderer: public QgsScaleBarRenderer
const QgsScaleBarSettings &settings,
const QgsScaleBarRenderer::ScaleBarContext &scaleContext ) const override;

/**
* \deprecated QGIS 3.14. Use the one with render context instead.
*/
Q_DECL_DEPRECATED QSizeF calculateBoxSize( const QgsScaleBarSettings &settings, const QgsScaleBarRenderer::ScaleBarContext &scaleContext ) const override SIP_DEPRECATED ;

private:
Expand Down

0 comments on commit 0e804d1

Please sign in to comment.