summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2022-12-20 11:45:25 +0000
committerTopi Reinio <topi.reinio@qt.io>2022-12-22 23:41:41 +0000
commit8844c6ef379f466a12a5f4981c78bdb990d92db8 (patch)
tree9bdaa297f9272db35da0f361ccdcf4db0d551954 /src/corelib/doc
parentf46bcad993886bcbec4cab119c26065ac2b180b5 (diff)
Doc: Remove incorrect CMake instructions for QtCore-private
Drop the use of \qtcmakepackage for the module page that results in incorrect instructions, and replace it with a snippet with the correct commands to use. Pick-to: 6.5 6.4 6.2 Fixes: QTBUG-109214 Change-Id: I936910ddb9e4118f931d85e4b096ad52006dcc32 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Diffstat (limited to 'src/corelib/doc')
-rw-r--r--src/corelib/doc/src/qtcore.qdoc14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/corelib/doc/src/qtcore.qdoc b/src/corelib/doc/src/qtcore.qdoc
index 2ef705dd75..a46add1342 100644
--- a/src/corelib/doc/src/qtcore.qdoc
+++ b/src/corelib/doc/src/qtcore.qdoc
@@ -18,9 +18,17 @@
/*!
\module QtCorePrivate
\title Qt Core Private C++ Classes
- \qtcmakepackage CorePrivate
\qtvariable core-private
-
- \brief Provides private core functionality.
\preliminary
+ \brief Provides private core functionality.
+
+//! [qtcoreprivate-usage]
+ When building with CMake, use the following commands to use
+ private Qt Core APIs:
+
+ \badcode
+ find_package(Qt6 REQUIRED COMPONENTS Core)
+ target_link_libraries(mytarget PRIVATE Qt6::CorePrivate)
+ \endcode
+//! [qtcoreprivate-usage]
*/