diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index ed3ee28f4f..e40b51a74e 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -1242,6 +1242,22 @@ Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleInterface *iface) d << ")"; return d.space(); } + +/*! \internal */ +QDebug operator<<(QDebug d, const QAccessibleEvent &ev) +{ + if (!&ev) { + d << "QAccessibleEvent(null)"; + return d; + } + d.nospace() << "QAccessibleEvent(object=" << hex << ev.object(); + d.nospace() << dec; + d.nospace() << "child=" << ev.child(); + d << " event=" << qAccessibleEventString(ev.type()); + d.nospace() << ")"; + return d.space(); +} + #endif QT_END_NAMESPACE diff --git a/src/gui/accessible/qaccessible.h b/src/gui/accessible/qaccessible.h index 180ab61ef9..c3dc826714 100644 --- a/src/gui/accessible/qaccessible.h +++ b/src/gui/accessible/qaccessible.h @@ -621,6 +621,7 @@ Q_GUI_EXPORT const char *qAccessibleEventString(QAccessible::Event event); #ifndef QT_NO_DEBUG_STREAM Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleInterface *iface); +Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleEvent &ev); #endif #endif // QT_NO_ACCESSIBILITY