summaryrefslogtreecommitdiffstats
path: root/src/gui/accessible
diff options
context:
space:
mode:
authorJan-Arve Saether <jan-arve.saether@nokia.com>2012-03-02 16:06:04 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-02 18:35:21 +0100
commitc531fcc92eeae600732d8e9fb63b70889322c018 (patch)
tree0aa99d9c31471f38d8aa1c8bdf6a42c0cc593be1 /src/gui/accessible
parentdb1aa6dd99aa7ce3118452c811dcf88a863511d7 (diff)
Improve debugging in the windows accessibility bridge.
set QT_DEBUG_ACCESSIBILITY=(1|0) to turn logging on or off Change-Id: Ibd5b77699decf0cf02bc6b6cc656fa237de29124 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'src/gui/accessible')
-rw-r--r--src/gui/accessible/qaccessible.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp
index 37e7a1dbb4..f256480dc8 100644
--- a/src/gui/accessible/qaccessible.cpp
+++ b/src/gui/accessible/qaccessible.cpp
@@ -1198,11 +1198,23 @@ Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleInterface *iface)
if (iface->object()) {
d << "obj=" << iface->object();
}
- if (iface->state().invisible) {
- d << "invisible";
- } else {
+ QStringList stateStrings;
+ QAccessible::State st = iface->state();
+ if (st.focusable)
+ stateStrings << QLatin1String("focusable");
+ if (st.focused)
+ stateStrings << QLatin1String("focused");
+ if (st.selected)
+ stateStrings << QLatin1String("selected");
+ if (st.invisible)
+ stateStrings << QLatin1String("invisible");
+
+ if (!stateStrings.isEmpty())
+ d << stateStrings.join(QLatin1String("|"));
+
+ if (!st.invisible)
d << "rect=" << iface->rect();
- }
+
} else {
d << " invalid";
}