This commit is contained in:
Martin 2025-09-15 19:35:21 +00:00 committed by GitHub
commit dfcaddbf12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -3813,7 +3813,8 @@ static inline void formatTouchEvent(QDebug d, const QTouchEvent &t)
{
d << "QTouchEvent(";
QtDebugUtils::formatQEnum(d, t.type());
d << " device: " << t.device()->name();
const auto* device = t.device();
d << " device: " << device ? device->name() : "No device";
d << " states: ";
QtDebugUtils::formatQFlags(d, t.touchPointStates());
d << ", " << t.points().size() << " points: " << t.points() << ')';