projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d68a5a
)
Don't use deprecated QWheelEvent::delta()
author
Morten Johan Sorvig
<morten.sorvig@nokia.com>
Mon, 27 Feb 2012 12:03:47 +0000
(13:03 +0100)
committer
Qt 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
patch
|
blob
|
history
diff --git
a/src/gui/kernel/qevent.cpp
b/src/gui/kernel/qevent.cpp
index
ee121f2
..
e902cbf
100644
(file)
--- 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