Add source device information to qDebug output of QTouchEvent
This is a simplistic patch to make it easier to debug touch input when using multiple physical or virtual devices. Change-Id: I996237cdce5e0ff0c4a0660dabb0d190679ab585 Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com> Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
This commit is contained in:
parent
049fad42a2
commit
42b39f9827
@ -3569,6 +3569,7 @@ static inline void formatTouchEvent(QDebug d, const QTouchEvent &t)
|
||||
{
|
||||
d << "QTouchEvent(";
|
||||
QtDebugUtils::formatQEnum(d, t.type());
|
||||
d << " device: " << t.device()->name();
|
||||
d << " states: ";
|
||||
QtDebugUtils::formatQFlags(d, t.touchPointStates());
|
||||
d << ", " << t.touchPoints().size() << " points: " << t.touchPoints() << ')';
|
||||
|
Loading…
Reference in New Issue
Block a user