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:
parent
0d68a5aabf
commit
8034bc9e83
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user