Don't use deprecated QWheelEvent::delta()

Replace with pixelDelta() and angleDelta().

Change-Id: Ie4b8b6fd39a5f8a28433554000940faef2f2542c
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Morten Johan Sorvig 2012-02-27 13:03:47 +01:00 committed by Qt by Nokia
parent 0d68a5aabf
commit 8034bc9e83

View 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