QAccessibleInterface::relatedTo() does the job for us already.
Change-Id: I816022041e38c5f9dd742df1c4b9ca61b8d6a186
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
return tlw.indexOf(child->object());
}
-/*! \reimp */
-QAccessible::Relation QAccessibleApplication::relationTo(const QAccessibleInterface *other) const
-{
- QObject *o = other ? other->object() : 0;
- if (!o)
- return QAccessible::Unrelated;
-
- return QAccessible::Unrelated;
-}
-
QAccessibleInterface *QAccessibleApplication::parent() const
{
return 0;
// relations
int childCount() const;
int indexOfChild(const QAccessibleInterface*) const;
- QAccessible::Relation relationTo(const QAccessibleInterface *other) const;
// navigation
QAccessibleInterface *parent() const;