diff options
author | Dheerendra Purohit <[email protected]> | 2025-06-23 13:14:14 +0530 |
---|---|---|
committer | Dheerendra Purohit <[email protected]> | 2025-06-26 21:02:01 +0530 |
commit | 3bf2fc6ebae389af9f0a732cd9b09925daf559c9 (patch) | |
tree | c3c492858261b88e9ca06ef1fc64eb28dbb7f4e2 | |
parent | 73d6e8e405d7066f2488c011bbcfbca4aa910888 (diff) |
Doc: List all operators defined by Q_DECLARE_OPERATORS_FOR_FLAGS
Clarified that the macro defines operator&(), operator~(),
operator^(), and missing assignment operators (|=, &=, ^=)
in addition to operator|(). This improves accuracy and
completeness of the QFlags documentation.
pick-to: 6.10 6.9
Fixes: QTBUG-127490
Change-Id: Ib704172396cb7728d0544f6d6ae6194c45a50e4b
Reviewed-by: Axel Spoerl <[email protected]>
-rw-r--r-- | src/corelib/global/qflags.qdoc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/global/qflags.qdoc b/src/corelib/global/qflags.qdoc index 9d5fa181b20..5f7e68cdcff 100644 --- a/src/corelib/global/qflags.qdoc +++ b/src/corelib/global/qflags.qdoc @@ -471,8 +471,10 @@ \macro Q_DECLARE_OPERATORS_FOR_FLAGS(Flags) \relates QFlags - The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global \c - operator|() functions for \a Flags, which is of type QFlags<T>. + The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global + bitwise operator functions \c operator|(), \c operator&(), + \c operator^(), \c operator~() and their assignment forms: + &=, |=, and ^=. for \a Flags, which is of type QFlags<T>. See the QFlags documentation for details. |