Docs: fix QT_NO_FOREACH/KEYWORDS macro documentation

QT_NO_FOREACH didn't related to anything so the documentation
wasn't generated, and QT_NO_KEYWORDS wasn't documented but
referenced.

Pick-to: 6.7
Change-Id: I7b79e61519c186d10f8e8c674705adb3d10bd53a
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
bb10
Volker Hilsheimer 2024-05-06 11:55:20 +02:00
parent 9a61bc5dfc
commit fd6cfd2283
2 changed files with 16 additions and 0 deletions

View File

@ -81,7 +81,10 @@
/*!
\macro QT_NO_FOREACH
\since 6.0
\relates <QtGlobal>
Defining this macro removes the availability of Qt's \c foreach
loop.
\sa QT_NO_KEYWORDS
*/

View File

@ -169,6 +169,19 @@ bool QInternal::activateCallbacks(Callback cb, void **parameters)
return false;
}
/*!
\macro QT_NO_KEYWORDS
\relates <QtGlobal>
Define this macro to disable the Qt-specific keywords that are usually enabled,
such as \c signals and \c slots. Use \c Q_SIGNALS and \c Q_SLOTS instead.
Libraries should define this macro to make sure that they don't use the generic
keywords without the \c Q_ prefix in their public headers.
\sa QT_NO_FOREACH
*/
/*!
\macro QT_NAMESPACE
\internal