summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <[email protected]>2024-06-25 22:59:05 -0700
committerShawn Rutledge <[email protected]>2024-06-26 09:08:25 -0700
commitac1ee25bcfe812adb9d57ee0b78214d91223fde3 (patch)
tree096283f6eb4738007a5458ac4972af7a555fbcc5
parent4f53be92642c2c90dca28ca9b7795a0086e557b4 (diff)
Include timestamp in QSinglePointEvent debug streaming operator
It's sometimes useful. QEventPoint debug output includes the timestamp; but for ordinary mouse events, we're often focused on the event itself rather than its eventpoint. Pick-to: 6.8 Change-Id: Ib65922331c8601bbed5aea3ea96c820906c89ef2 Reviewed-by: Liang Qi <[email protected]>
-rw-r--r--src/gui/kernel/qevent.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp
index d8c11d72a6d..91374355d03 100644
--- a/src/gui/kernel/qevent.cpp
+++ b/src/gui/kernel/qevent.cpp
@@ -4077,6 +4077,7 @@ QDebug operator<<(QDebug dbg, const QEvent *e)
const Qt::MouseButtons buttons = spe->buttons();
dbg << eventClassName(type) << '(';
QtDebugUtils::formatQEnum(dbg, type);
+ dbg << " ts=" << spe->timestamp();
if (isMouse) {
if (type != QEvent::MouseMove && type != QEvent::NonClientAreaMouseMove) {
dbg << ' ';