From 1d72e3fbdfdef979b90a94b53a98ac52e7282a36 Mon Sep 17 00:00:00 2001 From: Morten Johan Sorvig Date: Thu, 26 Apr 2012 10:29:16 +0200 Subject: Remove deprecation tags from QWheelEvent. 0df1c9f1 enabled deprecation warnings from Qt, causing warnings from QWheelEvent use. Using delta() and orientation() in new code is still not advised, but since QtWidgets uses them the "deprecated" tag is not suitable. Change-Id: I597e8ddf9fd2dc911d0e30044e96df744982ff81 Reviewed-by: Lars Knoll --- src/gui/kernel/qevent.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index d94257f7c0..4c019938b8 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -158,10 +158,8 @@ public: inline QPoint pixelDelta() const { return pixelD; } inline QPoint angleDelta() const { return angleD; } -#if QT_DEPRECATED_SINCE(5, 0) - inline QT_DEPRECATED int delta() const { return qt4D; } - inline QT_DEPRECATED Qt::Orientation orientation() const { return qt4O; } -#endif + inline int delta() const { return qt4D; } + inline Qt::Orientation orientation() const { return qt4O; } #ifndef QT_NO_INTEGER_EVENT_COORDINATES inline QPoint pos() const { return p.toPoint(); } -- cgit v1.2.3