diff options
author | Jan-Arve Saether <jan-arve.saether@nokia.com> | 2012-01-19 14:20:54 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-06 10:15:09 +0100 |
commit | 1d18fd01645e3b9efcd1a2c5dd030a5fc0f5892a (patch) | |
tree | 84c4e4df3f91f80e07641a5a3b0b0cfcecbe6705 /src/gui/accessible/qaccessible.cpp | |
parent | fdf9ee12916651c708dcd63d557e11e36ec7eb4e (diff) |
Remove QAccessible::FocusChild, add focusChild()
Also cleanup (reduce) all implementations of navigate() in order
to make the final removal of navigate smoother.
Change-Id: I2c216db8f5b2e40afcce8f859fc775053adc2fe3
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'src/gui/accessible/qaccessible.cpp')
-rw-r--r-- | src/gui/accessible/qaccessible.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index 8610ef726d..b45c7e8d84 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -910,6 +910,16 @@ QVector<QPair<QAccessibleInterface*, QAccessible::Relation> > QAccessibleInterfa } /*! + Returns the object that has the keyboard focus. + + The object returned can be any descendant, including itself. +*/ +QAccessibleInterface *QAccessibleInterface::focusChild() const +{ + return 0; +} + +/*! \fn QAccessibleInterface *QAccessibleInterface::childAt(int x, int y) const Returns the QAccessibleInterface of a child that contains the screen coordinates (\a x, \a y). @@ -991,6 +1001,14 @@ QVector<QPair<QAccessibleInterface*, QAccessible::Relation> > QAccessibleInterfa \sa relationTo(), childCount(), parent(), child() */ +int QAccessibleInterface::navigate(QAccessible::RelationFlag relation, int entry, QAccessibleInterface **target) const +{ + Q_UNUSED(entry); + Q_UNUSED(relation); + *target = 0; + return -1; +} + /*! \fn QString QAccessibleInterface::text(QAccessible::Text t) const |