diff --git a/python/gui/qgsmapcanvas.sip b/python/gui/qgsmapcanvas.sip index ea82a4adee0..0e39932b905 100644 --- a/python/gui/qgsmapcanvas.sip +++ b/python/gui/qgsmapcanvas.sip @@ -279,8 +279,8 @@ class QgsMapCanvas : QGraphicsView QgsMapLayer* currentLayer(); //! set wheel action and zoom factor (should be greater than 1) - //! @deprecated - void setWheelAction( WheelAction action, double factor = 2 ); + //! @deprecated No more options for wheel action + void setWheelAction( WheelAction action, double factor = 2 ) /Deprecated/; //! set the wheel zoom factor void setWheelFactor( double factor ); diff --git a/src/gui/qgsmapcanvas.h b/src/gui/qgsmapcanvas.h index 9fb84c55181..c3f5dc4080f 100644 --- a/src/gui/qgsmapcanvas.h +++ b/src/gui/qgsmapcanvas.h @@ -344,7 +344,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView //! set wheel action and zoom factor (should be greater than 1) //! @deprecated No more options for wheel action - void setWheelAction( WheelAction action, double factor = 2 ); + Q_DECL_DEPRECATED void setWheelAction( WheelAction action, double factor = 2 ); //! set wheel zoom factor (should be greater than 1) void setWheelFactor( double factor );