From 8844c6ef379f466a12a5f4981c78bdb990d92db8 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 20 Dec 2022 11:45:25 +0000 Subject: Doc: Remove incorrect CMake instructions for QtCore-private MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/corelib/doc/src/qtcore.qdoc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/corelib/doc') 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] */ -- cgit v1.2.3