Details
-
Task
-
Resolution: Invalid
-
P2: Important
-
None
-
None
-
Qt 5.0.0 For this task, the environment is Linux with X11, using the xlib or xcb platform plugins. A "mouse" pointer device, with more 5 non-wheel buttons, than 9 buttons, is the hardware requirement for seeing benefit from these changes.
-
Ie18fca3b9c86d0b6abbf2103a4f8582e6ce83e7d
Description
Qt::MouseButton (and the corresponding flags) are expanded into a 32-bit field, supporting name/value bits for up to 31 buttons. Following this prerequisite namespace change, the plugins are enhanced to translate high-numbered buttons into the new Qt::MouseButton bit fields. And finally, a one-line change is made in qguiapplication.cpp, allowing button numbers above "XButton2" (AKA Button #9, AKA the "Forward" Button) to pass through for higher-level processing.
This code is all done, and tested with a widget-based test program. Other plugins (e.g., wayland) must be enhanced in subsequent tasks.