Remove all reimplementations of relationTo() returning Unrelated.
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Mon, 16 Jan 2012 12:56:29 +0000 (13:56 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Jan 2012 12:58:44 +0000 (13:58 +0100)
QAccessibleInterface::relationTo() already return
QAccessible::Unrelated by default. No need to duplicate that code.

Change-Id: Ie64e798a1935619af32ae41d7e14ae26bd9bf523
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/plugins/accessible/shared/qdeclarativeaccessible.cpp
src/plugins/accessible/shared/qdeclarativeaccessible.h

index eba6a00..265b293 100644 (file)
@@ -63,11 +63,6 @@ QDeclarativeAccessible::~QDeclarativeAccessible()
 {
 }
 
-QFlags<QAccessible::RelationFlag> QDeclarativeAccessible::relationTo(const QAccessibleInterface *) const
-{
-    return QAccessible::Unrelated;
-}
-
 QAccessibleInterface *QDeclarativeAccessible::childAt(int x, int y) const
 {
     // Note that this function will disregard stacking order.
index d86d6a1..fac682d 100644 (file)
@@ -76,7 +76,6 @@ public:
     ~QDeclarativeAccessible();
 
     virtual QRect viewRect() const = 0;
-    QFlags<QAccessible::RelationFlag> relationTo(const QAccessibleInterface*) const;
     QAccessibleInterface *childAt(int, int) const;
     QAccessible::State state() const;