mirror of https://github.com/qt/qtbase.git
Merge 406651e972
into c7b3cb5f2a
This commit is contained in:
commit
dfcaddbf12
|
@ -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() << ')';
|
||||
|
|
Loading…
Reference in New Issue