summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-04-18 16:45:12 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-04-19 06:29:50 +0000
commitc5dafb177fc66600defe4dc398edcf6d4ba0c4d9 (patch)
treec044baa8978a6f5bf563681eec69a1dc74936bd8
parent47cc9e23a313d67a4a3107242f205d2473842021 (diff)
Add debug output for QScrollPrepareEvent and QScrollEvent
Change-Id: If283cecbefdf20c80ce00f689003f6a0ed9fe42b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r--src/gui/kernel/qevent.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp
index ac9edc8eb0..2777e408c1 100644
--- a/src/gui/kernel/qevent.cpp
+++ b/src/gui/kernel/qevent.cpp
@@ -4090,6 +4090,20 @@ QDebug operator<<(QDebug dbg, const QEvent *e)
}
dbg << ')';
break;
+ case QEvent::ScrollPrepare: {
+ const QScrollPrepareEvent *se = static_cast<const QScrollPrepareEvent *>(e);
+ dbg << "QScrollPrepareEvent(viewportSize=" << se->viewportSize()
+ << ", contentPosRange=" << se->contentPosRange()
+ << ", contentPos=" << se->contentPos() << ')';
+ }
+ break;
+ case QEvent::Scroll: {
+ const QScrollEvent *se = static_cast<const QScrollEvent *>(e);
+ dbg << "QScrollEvent(contentPos=" << se->contentPos()
+ << ", overshootDistance=" << se->overshootDistance()
+ << ", scrollState=" << se->scrollState() << ')';
+ }
+ break;
default:
dbg << eventClassName(type) << '(';
QtDebugUtils::formatQEnum(dbg, type);