Add QDebug operator<< for QAccessibleEvent
(Keep it internal) Change-Id: I9e99ccbd16cc595d2aff97a26181e8d8c3d9d7ae Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
This commit is contained in:
parent
33a4e3b470
commit
739579d15a
@ -1242,6 +1242,22 @@ Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleInterface *iface)
|
|||||||
d << ")";
|
d << ")";
|
||||||
return d.space();
|
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
|
#endif
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
@ -621,6 +621,7 @@ Q_GUI_EXPORT const char *qAccessibleEventString(QAccessible::Event event);
|
|||||||
|
|
||||||
#ifndef QT_NO_DEBUG_STREAM
|
#ifndef QT_NO_DEBUG_STREAM
|
||||||
Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleInterface *iface);
|
Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleInterface *iface);
|
||||||
|
Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleEvent &ev);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // QT_NO_ACCESSIBILITY
|
#endif // QT_NO_ACCESSIBILITY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user