Remove deprecation tags from QWheelEvent.
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Thu, 26 Apr 2012 08:29:16 +0000 (10:29 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Apr 2012 12:41:42 +0000 (14:41 +0200)
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 <lars.knoll@nokia.com>
src/gui/kernel/qevent.h

index d94257f..4c01993 100644 (file)
@@ -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(); }