Fix Qt::MouseButton Documentation for Qt::ExtraButton24,
authorstockton <rickstockton@reno-computerhelp.com>
Mon, 30 Apr 2012 05:21:43 +0000 (22:21 -0700)
committerQt by Nokia <qt-info@nokia.com>
Mon, 30 Apr 2012 07:17:13 +0000 (09:17 +0200)
Documentation for the 'more mouse buttons' feature has a Typo on
Qt::ExtraButton24 (is shown as "Qt::ExtraButton44", no value.)
Also, the order of BackButton/Xbutton1/ExtraButton1 causes the
'BackButton' value to be a forward reference to XButton1, which
makes it awkward and hard to understand. Same with ForwardButton/
XButton2/ExtraButton2.

Task-number: QTBUG-25529

Change-Id: I04b76d91d7a2155c1917a809a51700059320f510
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
src/corelib/global/qnamespace.h
src/corelib/global/qnamespace.qdoc

index c238e9a..50f43e3 100644 (file)
@@ -155,12 +155,12 @@ public:
         RightButton      = 0x00000002,
         MidButton        = 0x00000004, // ### Qt 6: remove me
         MiddleButton     = MidButton,
-        XButton1         = 0x00000008,
-        BackButton       = XButton1,
+        BackButton       = 0x00000008,
+        XButton1         = BackButton,
         ExtraButton1     = XButton1,
-        XButton2         = 0x00000010,
-        ForwardButton    = XButton2,
-        ExtraButton2     = XButton2,
+        ForwardButton    = 0x00000010,
+        XButton2         = ForwardButton,
+        ExtraButton2     = ForwardButton,
         TaskButton       = 0x00000020,
         ExtraButton3     = TaskButton,
         ExtraButton4     = 0x00000040,
index 76ad61d..a613eff 100644 (file)
     \value ExtraButton21   The 24th non-wheel Mouse Button.
     \value ExtraButton22   The 25th non-wheel Mouse Button.
     \value ExtraButton23   The 26th non-wheel Mouse Button.
-    \value ExtraButton44   The 27th non-wheel Mouse Button.
+    \value ExtraButton24   The 27th non-wheel Mouse Button.
 
     \omitvalue MaxMouseButton
     \omitvalue MouseButtonMask