summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2012-11-04 10:32:27 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-08 16:59:50 +0100
commit0dc2b5e083cf5b89be20acd76d93e223f5144485 (patch)
tree40a103e1e29d6a554666533435671c51c5c4c5fe /src
parent33ffbf21e0a35debd30579e1bd7f55cb5cae37bc (diff)
Accessibility: Warn if an event cannot create an interface for some reason.
Change-Id: I87d0290286243f8ead114e238798c9a7b882d978 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/accessible/qaccessible.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp
index d9fcd6e4e2..e62f426418 100644
--- a/src/gui/accessible/qaccessible.cpp
+++ b/src/gui/accessible/qaccessible.cpp
@@ -1070,8 +1070,10 @@ QColor QAccessibleInterface::backgroundColor() const
QAccessibleInterface *QAccessibleEvent::accessibleInterface() const
{
QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(m_object);
- if (!iface)
+ if (!iface) {
+ qWarning() << "Cannot create accessible interface for object: " << m_object;
return 0;
+ }
if (m_child >= 0) {
QAccessibleInterface *child = iface->child(m_child);