Minor fixes for RelationFlag.
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Mon, 20 Feb 2012 14:00:47 +0000 (15:00 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 24 Feb 2012 13:55:06 +0000 (14:55 +0100)
* Document AllRelations
* Assigned new values (starting from 1) for the remaining members of
  the enum.

Change-Id: I55ec197f24ff7d43ff3c0d101edd33b9615f9287
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/gui/accessible/qaccessible.cpp
src/gui/accessible/qaccessible.h

index 0d00df2..3f1295a 100644 (file)
@@ -364,6 +364,8 @@ QT_BEGIN_NAMESPACE
     \value Labelled         The first object is labelled by the second object.
     \value Controller       The first object controls the second object.
     \value Controlled       The first object is controlled by the second object.
+    \value AllRelations     Used as a mask to specify that we are interesting in information
+                            about all relations
 
     Implementations of relations() return a combination of these flags.
     Some values are mutually exclusive.
index e57033d..a72b91a 100644 (file)
@@ -306,10 +306,10 @@ public:
     };
 
     enum RelationFlag {
-        Label         = 0x00020000,
-        Labelled      = 0x00040000,
-        Controller    = 0x00080000,
-        Controlled    = 0x00100000,
+        Label         = 0x00000001,
+        Labelled      = 0x00000002,
+        Controller    = 0x00000004,
+        Controlled    = 0x00000008,
         AllRelations  = 0xffffffff
     };
     Q_DECLARE_FLAGS(Relation, RelationFlag)