From 0d43d4f79493e06a9f1dac4777d302b5d891a1be Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 7 Oct 2016 06:41:15 +0200 Subject: [PATCH] TouchPoint debug operator: show pointId in hex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that pointIds contain a bit-shifted device ID, it's easier to see the structure in hex. Change-Id: I80c76f1889dc3ab3ed68b34091cd976dbaad33f0 Reviewed-by: Jan Arve Sæther --- src/gui/kernel/qevent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index affc4c2526..cd67e9a875 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -3887,7 +3887,7 @@ QDebug operator<<(QDebug dbg, const QTouchEvent::TouchPoint &tp) { QDebugStateSaver saver(dbg); dbg.nospace(); - dbg << "TouchPoint(" << tp.id() << " ("; + dbg << "TouchPoint(" << hex << tp.id() << dec << " ("; QtDebugUtils::formatQRect(dbg, tp.rect()); dbg << ") "; QtDebugUtils::formatQEnum(dbg, tp.state());