summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-05-06 11:55:20 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2024-05-09 01:11:37 +0200
commitfd6cfd22831c6ff7078bb97e62439375cfc849f6 (patch)
tree6a2f2fbe6ccee867fd59a1ae29ed905b5e20a1b5 /src/corelib/global/qglobal.cpp
parent9a61bc5dfc3c68200dbf48fd79771a856fae26d5 (diff)
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>
Diffstat (limited to 'src/corelib/global/qglobal.cpp')
-rw-r--r--src/corelib/global/qglobal.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp
index 222c008f8a..99e4e49c9c 100644
--- a/src/corelib/global/qglobal.cpp
+++ b/src/corelib/global/qglobal.cpp
@@ -170,6 +170,19 @@ bool QInternal::activateCallbacks(Callback cb, void **parameters)
}
/*!
+ \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