From 9c032ad5feb2c7f61665e4b4f5fa8e668d9b7b72 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Thu, 8 Feb 2024 13:53:56 +0100 Subject: [PATCH] Doc: Specify target_link_libraries item for CorePrivate module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QDoc has a new command, `\qtcmaketargetitem`, that allows for overriding the content generated for the `target_link_libraries` instructions on class/namespace pages. The new command must be used on the documentation for the module, in conjunction with the `\qtcmakepackage` command. This patch makes use of the new command for a limited number of Android-related classes that belong to the CorePrivate module. It also removes the "usage snippet" and drops its inclusion from the few classes that included said snippet, as that's no longer needed. Task-number: QTBUG-109214 Task-number: QTBUG-121991 Change-Id: Ic715b6512a26b3b89e24f418295640f9bbda9417 Reviewed-by: Topi Reiniƶ (cherry picked from commit 4ed994487484b37ff960144806445f8f9ce42286) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/doc/src/qtcore.qdoc | 4 ++-- src/corelib/platform/android/qandroidextras.cpp | 13 ------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/corelib/doc/src/qtcore.qdoc b/src/corelib/doc/src/qtcore.qdoc index a46add13425..ea65d68da58 100644 --- a/src/corelib/doc/src/qtcore.qdoc +++ b/src/corelib/doc/src/qtcore.qdoc @@ -19,10 +19,11 @@ \module QtCorePrivate \title Qt Core Private C++ Classes \qtvariable core-private + \qtcmakepackage Core + \qtcmaketargetitem CorePrivate \preliminary \brief Provides private core functionality. -//! [qtcoreprivate-usage] When building with CMake, use the following commands to use private Qt Core APIs: @@ -30,5 +31,4 @@ find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::CorePrivate) \endcode -//! [qtcoreprivate-usage] */ diff --git a/src/corelib/platform/android/qandroidextras.cpp b/src/corelib/platform/android/qandroidextras.cpp index 662ba993c71..1381e8ba0f8 100644 --- a/src/corelib/platform/android/qandroidextras.cpp +++ b/src/corelib/platform/android/qandroidextras.cpp @@ -126,8 +126,6 @@ QAndroidBinder QAndroidParcelPrivate::readBinder() const \l {https://developer.android.com/reference/android/os/Parcel.html}{Android Parcel} methods. - \include qtcore.qdoc qtcoreprivate-usage - \since 6.2 */ @@ -245,8 +243,6 @@ QJniObject QAndroidParcel::handle() const \l {https://developer.android.com/reference/android/os/Binder.html}{Android Binder} methods. - \include qtcore.qdoc qtcoreprivate-usage - \since 6.2 */ @@ -387,8 +383,6 @@ QJniObject QAndroidBinder::handle() const It is useful when you perform a QtAndroidPrivate::bindService operation. - \include qtcore.qdoc qtcoreprivate-usage - \since 6.2 */ @@ -514,7 +508,6 @@ public: Create a subclass of this class to be notified of the results when using the \c QtAndroidPrivate::startActivity() and \c QtAndroidPrivate::startIntentSender() APIs. - \include qtcore.qdoc qtcoreprivate-usage */ /*! @@ -612,8 +605,6 @@ public: \l {https://developer.android.com/reference/android/app/Service.html}{Android Service} methods. - \include qtcore.qdoc qtcoreprivate-usage - \since 6.2 */ @@ -723,8 +714,6 @@ bool QtAndroidPrivate::registerExtrasNatives(QJniEnvironment &env) \l {https://developer.android.com/reference/android/content/Intent.html}{Android Intent} methods. - \include qtcore.qdoc qtcoreprivate-usage - \since 6.2 */ @@ -850,8 +839,6 @@ QJniObject QAndroidIntent::handle() const \brief The QtAndroidPrivate namespace provides miscellaneous functions to aid Android development. \inheaderfile QtCore/private/qandroidextras_p.h - - \include qtcore.qdoc qtcoreprivate-usage */ /*!