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

Doc for Q_DECLARE_OPERATORS_FOR_FLAGS only mentions operator|()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.11.0 FF
    • 6.8
    • Documentation
    • None
    • 3bf2fc6eb (dev)

    Description

      The documentation for Q_DECLARE_OPERATORS_FOR_FLAGS at https://doc-snapshots.qt.io/qt6-dev/qflags.html#Q_DECLARE_OPERATORS_FOR_FLAGS only mentions that the macro generates operator|().

      Looking at the code, however, shows that it does much more including operators for &, ~, -, +.

      I'm not sure how much of this is relevant in the doc but it would probably be good to at least mention operator&() and operator~() alongside operator|().

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            olivier.decanniere Olivier De Cannière
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes