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>
bb10
Shawn Rutledge 2016-10-07 06:41:15 +02:00
parent 4c26b48633
commit 0d43d4f794
1 changed files with 1 additions and 1 deletions

View File

@ -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());