diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-04-13 16:00:39 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-12-16 12:51:08 +0000 |
commit | a8151ded6f3a6bba640335eb2241435fbeb0eb96 (patch) | |
tree | c0ff2602d43b5ccd7240c04d756de8d9a8986675 /src/gui/kernel/qevent.cpp | |
parent | ff19ebcc2d9c9668af24fe8add9f70c160776367 (diff) |
touch manual test and TouchPoint qDebug: show horz/vert ellipse diam
Change-Id: Idb42a732e538f202de1e7310f4ca375fd0420b02
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui/kernel/qevent.cpp')
-rw-r--r-- | src/gui/kernel/qevent.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 468523ab9c..f34d09c4e5 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -3888,11 +3888,14 @@ QDebug operator<<(QDebug dbg, const QTouchEvent::TouchPoint &tp) QDebugStateSaver saver(dbg); dbg.nospace(); dbg << "TouchPoint(" << hex << tp.id() << dec << " ("; - QtDebugUtils::formatQRect(dbg, tp.rect()); + QtDebugUtils::formatQPoint(dbg, tp.pos()); dbg << ") "; QtDebugUtils::formatQEnum(dbg, tp.state()); - dbg << " press " << tp.pressure() << " vel " << tp.velocity() - << " start ("; + dbg << " pressure " << tp.pressure() << " ellipse (" + << tp.ellipseDiameters().width() << " x " << tp.ellipseDiameters().height() + << " angle " << tp.rotation() << ") vel ("; + QtDebugUtils::formatQPoint(dbg, tp.velocity().toPointF()); + dbg << ") start ("; QtDebugUtils::formatQPoint(dbg, tp.startPos()); dbg << ") last ("; QtDebugUtils::formatQPoint(dbg, tp.lastPos()); |