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>
This commit is contained in:
parent
33ffbf21e0
commit
0dc2b5e083
@ -1070,8 +1070,10 @@ QColor QAccessibleInterface::backgroundColor() const
|
|||||||
QAccessibleInterface *QAccessibleEvent::accessibleInterface() const
|
QAccessibleInterface *QAccessibleEvent::accessibleInterface() const
|
||||||
{
|
{
|
||||||
QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(m_object);
|
QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(m_object);
|
||||||
if (!iface)
|
if (!iface) {
|
||||||
|
qWarning() << "Cannot create accessible interface for object: " << m_object;
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (m_child >= 0) {
|
if (m_child >= 0) {
|
||||||
QAccessibleInterface *child = iface->child(m_child);
|
QAccessibleInterface *child = iface->child(m_child);
|
||||||
|
Loading…
Reference in New Issue
Block a user