summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan-Arve Saether <jan-arve.saether@nokia.com>2012-04-24 09:45:43 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-24 19:38:04 +0200
commit739579d15a93db09c6c313e3d5eb3a7f41badae5 (patch)
tree6c85844e1dda84e977125e9c50ec3b7f31c20581 /src
parent33a4e3b4706e6819f4471fc431436ec69bee1d33 (diff)
Add QDebug operator<< for QAccessibleEvent
(Keep it internal) Change-Id: I9e99ccbd16cc595d2aff97a26181e8d8c3d9d7ae Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/accessible/qaccessible.cpp16
-rw-r--r--src/gui/accessible/qaccessible.h1
2 files changed, 17 insertions, 0 deletions
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