Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19238 CLONE - QEvent::MouseButtonPress, QEvent::MouseButtonRelease should provide ALL X11 button-numbers which can fit into the one-byte ENUM/typedef
  3. QTBUG-19750

Define three available bits within enum "MouseButton" as new, named buttons. File name is "/src/corelib/global/qnamespace.h"

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Invalid
    • Not Evaluated
    • None
    • None
    • X11 platform, with a "Mouse" which can present click, double-click, and release actions on more than 5 "buttons" (in Qt terminology). Note: from X11, this means a button number >= 10.

    Description

      The new Buttons should, IMO, be named according to the event presented by X11, as seen in when clicking in the "xev" test box.

      Button10 = 0x00000020,
      Button11 = 0x00000040,
      and Button12 = 0x00000080

      In addition, I give "XButton1" the more descriptive alternate name "BackButton", with the same value (in the same way that "MiddleButton" has been defined as a new, and more preferred, name for "MidButton"). "XButton2" will be given the alternate name "ForwardButton".

      Although, if Qt insists on continuing with the current scheme (resulting in "XButton3" = 0x00000020, "XButton4" = 0x00000040, and "XButton5" = 0x00000080, go ahead and do it that way. It just means a bit of extra thinking to figure out the button number which we're really talking about.

      Changes to be made in "/src/corelib/global/qnamespace.qdoc" depend on the names approved here; I designate that modification as the next Sub-Task. I will also mark the name "MidButton" as Deprecated, per the trailing comment.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rickst29 Richard Stockton
            rickst29 Richard Stockton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 3 days
                3d
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes