Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    The best way to 'wrap' QKeySequence? [ABANDONED]

    General and Desktop
    1
    3
    1625
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rickst29 last edited by

      Hello. I'm going to add the invocation of Qt shortcuts FROM THE MOUSE into Qt5, and I'm not sure how to migrate the current QKeySequence class.

      Alternative 1: A new parent wrapper, 'QInputSequence' containing the current class, plus new classes for 'QMouseSequence' and 'QCombinedSequence'. (The second being for shortcuts which involve a mouse button WITH keyboard click of a 'regular' key; the modifier keys are easily handled in QMouseSequence directly.) This makes slightly more sense for adding future devices, such as TV remote controls and IR game controllers.

      Alternative 2: Put these new classes INSIDE of the existing QKeySequence. This would make enumerations (StandardKey, SequenceMatch, and SequenceFormat) available to the children auto-magically, without keywords to change their scope.


      What seems best, and why?
      Quick and Dirty answers would be great, I'm looking only for a general suggestion.

      1 Reply Last reply Reply Quote 0
      • R
        rickst29 last edited by

        BTW, discussion of the enhancement itself is at:
        http://developer.qt.nokia.com/forums/viewthread/12843/

        But that discussion is mostly settled- enhance the existing structure, not build-from-scratch-using-Dbus.

        1 Reply Last reply Reply Quote 0
        • R
          rickst29 last edited by

          Neither. The concept of 'Mouse Shortcuts' is best handled at the Desktop and KApplication layers, not down inside Qt.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post