Cleanup: No need to have two code paths that both return Unrelated.
QAccessibleInterface::relatedTo() does the job for us already. Change-Id: I816022041e38c5f9dd742df1c4b9ca61b8d6a186 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
This commit is contained in:
parent
a84d893bae
commit
408a347d80
@ -224,16 +224,6 @@ int QAccessibleApplication::indexOfChild(const QAccessibleInterface *child) cons
|
||||
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;
|
||||
|
@ -86,7 +86,6 @@ public:
|
||||
// relations
|
||||
int childCount() const;
|
||||
int indexOfChild(const QAccessibleInterface*) const;
|
||||
QAccessible::Relation relationTo(const QAccessibleInterface *other) const;
|
||||
|
||||
// navigation
|
||||
QAccessibleInterface *parent() const;
|
||||
|
Loading…
Reference in New Issue
Block a user