In some cases this could prevent us from actually returning the
expected QAccessibleQuickItemValueInterface.
This is also more future-proof in case we add more QAI subclasses.
Change-Id: Id66dc21418671a3045d93c0a44dc74aa0aff30af
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
if (parent == canvas->rootItem()) {
return QAccessible::queryAccessibleInterface(canvas);
} else {
- QDeclarativeAccessible *ancestor = new QAccessibleQuickItem(parent);
- return ancestor;
+ return QAccessible::queryAccessibleInterface(parent);
}
}
return 0;
if (!child) // FIXME can this happen?
return 0;
- return new QAccessibleQuickItem(child);
+ return QAccessible::queryAccessibleInterface(child);
}
int QAccessibleQuickItem::navigate(QAccessible::RelationFlag rel, int entry, QAccessibleInterface **target) const
Q_UNUSED(entry);
Q_UNUSED(target);
*target = 0;
- if (entry == 0) {
- *target = new QAccessibleQuickItem(item());
- return 0;
- }
return -1;
}