diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-10-22 22:38:14 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-23 14:54:01 +0100 |
commit | beb72b2fbf17a20b4a9d51d75d79f9c3c69bb357 (patch) | |
tree | c972c0a408ea912faaa67d4508ba5d855a1cb582 /src/gui/accessible/qaccessibleobject.h | |
parent | e739ca0071df28adf767d148ba5095d846e898f3 (diff) |
Remove virtual child integers.
This makes the accessibility apis much
simpler and less error prone.
Disable the itemviews implementation that is in complex widgets.
The itemviews will use the new code from itemviews.h/cpp everywhere now.
QToolBox was broken before, now at least it simply exposes all its children.
The children are the buttons (tabs of the toolbox) and their contents.
Change-Id: I45e218f49f02aebbd678ddfe29f94c2a112a2125
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/gui/accessible/qaccessibleobject.h')
-rw-r--r-- | src/gui/accessible/qaccessibleobject.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/accessible/qaccessibleobject.h b/src/gui/accessible/qaccessibleobject.h index d562960554..6a02dc86c7 100644 --- a/src/gui/accessible/qaccessibleobject.h +++ b/src/gui/accessible/qaccessibleobject.h @@ -65,8 +65,8 @@ public: QObject *object() const; // properties - QRect rect(int child = 0) const; - void setText(Text t, int child, const QString &text); + QRect rect() const; + void setText(Text t, const QString &text); protected: virtual ~QAccessibleObject(); @@ -86,7 +86,7 @@ public: // relations int childCount() const; int indexOfChild(const QAccessibleInterface*) const; - Relation relationTo(int, const QAccessibleInterface *, int) const; + Relation relationTo(const QAccessibleInterface *other) const; // navigation QAccessibleInterface *parent() const; @@ -95,9 +95,9 @@ public: int navigate(RelationFlag, int, QAccessibleInterface **) const; // properties and state - QString text(Text t, int child = 0) const; - Role role(int child = 0) const; - State state(int child = 0) const; + QString text(Text t) const; + Role role() const; + State state() const; }; #endif // QT_NO_ACCESSIBILITY |