Skip to content

Commit 78bcd4b

Browse files
committedMay 28, 2016
Correctly mark method as deprecated
1 parent e7d0392 commit 78bcd4b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎python/gui/qgsmapcanvas.sip

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ class QgsMapCanvas : QGraphicsView
279279
QgsMapLayer* currentLayer();
280280

281281
//! set wheel action and zoom factor (should be greater than 1)
282-
//! @deprecated
283-
void setWheelAction( WheelAction action, double factor = 2 );
282+
//! @deprecated No more options for wheel action
283+
void setWheelAction( WheelAction action, double factor = 2 ) /Deprecated/;
284284

285285
//! set the wheel zoom factor
286286
void setWheelFactor( double factor );

‎src/gui/qgsmapcanvas.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
344344

345345
//! set wheel action and zoom factor (should be greater than 1)
346346
//! @deprecated No more options for wheel action
347-
void setWheelAction( WheelAction action, double factor = 2 );
347+
Q_DECL_DEPRECATED void setWheelAction( WheelAction action, double factor = 2 );
348348

349349
//! set wheel zoom factor (should be greater than 1)
350350
void setWheelFactor( double factor );

0 commit comments

Comments
 (0)