diff options
author | Morten Johan Sorvig <morten.sorvig@nokia.com> | 2012-02-27 13:03:47 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-29 21:05:01 +0100 |
commit | 8034bc9e833a07c8f4b193849055097f0be7f619 (patch) | |
tree | 2403b5ab946b6ad6ee1c27be2f990a8125d59146 | |
parent | 0d68a5aabf4f93236df95da8836ecf62c4e92593 (diff) |
Don't use deprecated QWheelEvent::delta()
Replace with pixelDelta() and angleDelta().
Change-Id: Ie4b8b6fd39a5f8a28433554000940faef2f2542c
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
-rw-r--r-- | src/gui/kernel/qevent.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index ee121f2071..e902cbf7e2 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -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 |