diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-05-09 07:09:55 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-05-11 11:55:27 +0000 |
commit | c67ed188abf80cb59f9d70aa38a57721b99091f0 (patch) | |
tree | e3b5af0c6fc67ce2aedcd5e66bc5012265189350 /src/quick/items/qquickevents.cpp | |
parent | ab91e7fa02a562d80fd0747f28a60e00c3b45a01 (diff) |
QQuickPointerEvent debug operator: add timestamp
It can help to distinguish the time period when we are still delivering
the same event.
Change-Id: Id738d3e210431f1803cad9ace000c0f702e930fc
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents.cpp')
-rw-r--r-- | src/quick/items/qquickevents.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quick/items/qquickevents.cpp b/src/quick/items/qquickevents.cpp index a2d8ea3ad6..e7de663f30 100644 --- a/src/quick/items/qquickevents.cpp +++ b/src/quick/items/qquickevents.cpp @@ -1347,7 +1347,9 @@ Q_QUICK_PRIVATE_EXPORT QDebug operator<<(QDebug dbg, const QQuickPointerDevice * Q_QUICK_PRIVATE_EXPORT QDebug operator<<(QDebug dbg, const QQuickPointerEvent *event) { QDebugStateSaver saver(dbg); dbg.nospace(); - dbg << "QQuickPointerEvent(dev:"; + dbg << "QQuickPointerEvent("; + dbg << event->timestamp(); + dbg << " dev:"; QtDebugUtils::formatQEnum(dbg, event->device()->type()); if (event->buttons() != Qt::NoButton) { dbg << " buttons:"; |