Small cleanup.
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Tue, 27 Sep 2011 11:01:32 +0000 (13:01 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 3 Oct 2011 07:56:09 +0000 (09:56 +0200)
Change-Id: I8661e28fca2069bf4034f7a9d2b5e1bbde2d542a
Reviewed-on: http://codereview.qt-project.org/5843
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/gui/accessible/qaccessible.h

index 314a285..2673765 100644 (file)
@@ -51,8 +51,6 @@
 #include <QtGui/qcolor.h>
 #include <QtGui/qevent.h>
 
-class QWindow;
-
 QT_BEGIN_HEADER
 
 QT_BEGIN_NAMESPACE
@@ -62,6 +60,7 @@ QT_MODULE(Gui)
 #ifndef QT_NO_ACCESSIBILITY
 
 class QAccessibleInterface;
+class QWindow;
 
 class Q_GUI_EXPORT QAccessible
 {
@@ -369,10 +368,6 @@ public:
     virtual QObject *object() const = 0;
     virtual QWindow *window() const;
 
-    // hierarchy
-    virtual int childCount() const = 0;
-    virtual int indexOfChild(const QAccessibleInterface *) const = 0;
-
     // relations
     virtual Relation relationTo(int child, const QAccessibleInterface *other,
                                 int otherChild) const;
@@ -380,9 +375,11 @@ public:
 
     virtual int childAt(int x, int y) const = 0;
 
-    // navigation
+    // navigation, hierarchy
     virtual QAccessibleInterface *parent() const = 0;
     virtual QAccessibleInterface *child(int index) const = 0;
+    virtual int childCount() const = 0;
+    virtual int indexOfChild(const QAccessibleInterface *) const = 0;
     virtual int navigate(RelationFlag relation, int index, QAccessibleInterface **iface) const = 0;
 
     // properties and state