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/widgets/accessible/qaccessiblewidget.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/widgets/accessible/qaccessiblewidget.h')
-rw-r--r-- | src/widgets/accessible/qaccessiblewidget.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/widgets/accessible/qaccessiblewidget.h b/src/widgets/accessible/qaccessiblewidget.h index e3b5a86356..87edf75f0e 100644 --- a/src/widgets/accessible/qaccessiblewidget.h +++ b/src/widgets/accessible/qaccessiblewidget.h @@ -63,29 +63,27 @@ public: QWindow *window() const; int childCount() const; int indexOfChild(const QAccessibleInterface *child) const; - Relation relationTo(int child, const QAccessibleInterface *other, int otherChild) const; + Relation relationTo(const QAccessibleInterface *other) const; int childAt(int x, int y) const; - QRect rect(int child = 0) const; + QRect rect() const; QAccessibleInterface *parent() const; QAccessibleInterface *child(int index) const; int navigate(RelationFlag rel, int entry, QAccessibleInterface **target) const; - 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; QColor foregroundColor() const; QColor backgroundColor() const; - QVariant invokeMethod(Method method, int child, const QVariantList ¶ms); // QAccessibleActionInterface QStringList actionNames() const; void doAction(const QString &actionName); QStringList keyBindingsForAction(const QString &actionName) const; - protected: ~QAccessibleWidget(); QWidget *widget() const; |