summaryrefslogtreecommitdiffstats
path: root/src/widgets/accessible/qaccessible.h
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2011-08-24 16:16:14 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-15 01:53:07 +0200
commit92be18bfd0cfff5af49f70d786db4d76980d710a (patch)
treeddce8b0f609faa605b581b45b77275bdd91c2db7 /src/widgets/accessible/qaccessible.h
parent86765166b9d219f6af8c69c41794ce2dfd224a63 (diff)
Add a function to get all relations of an accessible.
Add a default implementation for RelationTo. Usually this should be empty and it is pointless to return the parent-child releations in this function. Instead we will have proper parent-child functions and also remove this functionallity from navigate. Having default implementations for these removes the necessity to reimplement them to return Unrelated in many places. Change-Id: I13b7ad3256533681e5a0548ae15da98ca0d16b94 Reviewed-on: http://codereview.qt-project.org/4785 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/widgets/accessible/qaccessible.h')
-rw-r--r--src/widgets/accessible/qaccessible.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/accessible/qaccessible.h b/src/widgets/accessible/qaccessible.h
index 3a59810866..f03f86ce7a 100644
--- a/src/widgets/accessible/qaccessible.h
+++ b/src/widgets/accessible/qaccessible.h
@@ -379,7 +379,9 @@ public:
// relations
virtual Relation relationTo(int child, const QAccessibleInterface *other,
- int otherChild) const = 0;
+ int otherChild) const;
+ virtual QVector<QPair<QAccessibleInterface*, Relation> > relations() const;
+
virtual int childAt(int x, int y) const = 0;
// navigation