Remove Q_DECL_DEPRECATED from constructor

Even though this class is deprecated, this breaks the qt 6 on qt 6.7+
This commit is contained in:
Nyall Dawson 2024-04-29 10:14:24 +10:00
parent 3bc7f29dac
commit f02841dd5d
3 changed files with 3 additions and 11 deletions

View File

@ -26,12 +26,9 @@ onto a scene with custom composition modes.
%End
public:
QgsLayoutEffect() /Deprecated/;
QgsLayoutEffect();
%Docstring
Constructor for QgsLayoutEffect.
.. deprecated:: QGIS 3.34
-- this class should not be used, it is non-stable and results in crashes. See https://bugreports.qt.io/browse/QTBUG-58501.
%End
void setCompositionMode( QPainter::CompositionMode mode ) /Deprecated/;

View File

@ -26,12 +26,9 @@ onto a scene with custom composition modes.
%End
public:
QgsLayoutEffect() /Deprecated/;
QgsLayoutEffect();
%Docstring
Constructor for QgsLayoutEffect.
.. deprecated:: QGIS 3.34
-- this class should not be used, it is non-stable and results in crashes. See https://bugreports.qt.io/browse/QTBUG-58501.
%End
void setCompositionMode( QPainter::CompositionMode mode ) /Deprecated/;

View File

@ -41,10 +41,8 @@ class CORE_EXPORT QgsLayoutEffect : public QGraphicsEffect
/**
* Constructor for QgsLayoutEffect.
*
* \deprecated since QGIS 3.34 -- this class should not be used, it is non-stable and results in crashes. See https://bugreports.qt.io/browse/QTBUG-58501.
*/
Q_DECL_DEPRECATED QgsLayoutEffect() SIP_DEPRECATED = default;
QgsLayoutEffect() = default;
/**
* Sets the composition (blending) \a mode used for rendering