diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-10-07 06:41:15 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-10-07 12:00:56 +0000 |
commit | 0d43d4f79493e06a9f1dac4777d302b5d891a1be (patch) | |
tree | b3749d3b7edc16cd314a18c6f9bef8a306278346 /src/gui/kernel | |
parent | 4c26b4863361a442ee692ede0e5ab6a798cd2f00 (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.cpp | 2 |
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()); |