Don't use deprecated QWheelEvent::delta()
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Mon, 27 Feb 2012 12:03:47 +0000 (13:03 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Feb 2012 20:05:01 +0000 (21:05 +0100)
Replace with pixelDelta() and angleDelta().

Change-Id: Ie4b8b6fd39a5f8a28433554000940faef2f2542c
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/gui/kernel/qevent.cpp

index ee121f2..e902cbf 100644 (file)
@@ -2999,7 +2999,9 @@ QDebug operator<<(QDebug dbg, const QEvent *e) {
         break;
 #ifndef QT_NO_WHEELEVENT
     case QEvent::Wheel:
-        dbg.nospace() << "QWheelEvent("  << static_cast<const QWheelEvent *>(e)->delta()
+        dbg.nospace() << "QWheelEvent("
+                      << static_cast<const QWheelEvent *>(e)->pixelDelta()
+                      << static_cast<const QWheelEvent *>(e)->angleDelta()
                       << ')';
         return dbg.space();
 #endif