summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-10-07 06:41:15 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-10-07 12:00:56 +0000
commit0d43d4f79493e06a9f1dac4777d302b5d891a1be (patch)
treeb3749d3b7edc16cd314a18c6f9bef8a306278346 /src/gui/kernel
parent4c26b4863361a442ee692ede0e5ab6a798cd2f00 (diff)
TouchPoint debug operator: show pointId in hex
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 <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qevent.cpp2
1 files changed, 1 insertions, 1 deletions
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());