Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36174

Add flags Qt::Edges for enum Qt::Edge

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.3.0
    • 5.2.0
    • Core: Other
    • None
    • qtbase/dev: cf66bf942bfd19c6c01d05a77b84d4a36cb7ca9f

    Description

      The values of the enumeration Qt::Edge (in QtCore/qnamespace.h) can be used in a bitmask (just 1 bit set per value) - but Qt provides no flags type for Qt::Edge.

      Maybe that there is no need for in Qt - but it could be useful for other 3rd party libraries.
      Please add:

      Q_DECLARE_FLAGS(Edges, Edge)
      Q_DECLARE_OPERATORS_FOR_FLAGS(Edges)
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mic Michael Hanfland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes