diff options
author | Paul Wicking <paul.wicking@qt.io> | 2020-05-18 10:42:25 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2020-05-26 15:51:19 +0200 |
commit | b80db738944e2c1513a61c1086bb2c27be0c676e (patch) | |
tree | ce95617000a2650c81f15f7ebb347dacecfd7dd5 /tests/auto/qdoc/generatedoutput/testdata | |
parent | 2b0fb3618ff718eec89bbcd155758a719865efef (diff) |
QDoc: Add CMake package information to documentation
This introduces a new command to QDoc, \qtcmakepackage. The command
works exactly like the \qtvariable command.
The command adds a table row in class and namespace documentation
pages. This entry contains
CMake: find_package(Qt6 COMPONENT Foo)
target_link_libraries(mytarget PUBLIC Qt::Foo)
...immediately preceding the existing "qmake: += Foo" row.
[ChangeLog][qdoc] Added a new QDoc command, \qtcmakepackage, that
adds CMake snippets to class and namespace documentation.
Fixes: QTBUG-84024
Pick-to: 5.15
Change-Id: I687813c76d92f20ec1eac6229ca2c5ef22ca3591
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Reviewed-by: Thibaut Cuvelier <cuvelier.thibaut@gmail.com>
Diffstat (limited to 'tests/auto/qdoc/generatedoutput/testdata')
-rw-r--r-- | tests/auto/qdoc/generatedoutput/testdata/testcpp/testcpp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qdoc/generatedoutput/testdata/testcpp/testcpp.cpp b/tests/auto/qdoc/generatedoutput/testdata/testcpp/testcpp.cpp index 17045eed5..3398be996 100644 --- a/tests/auto/qdoc/generatedoutput/testdata/testcpp/testcpp.cpp +++ b/tests/auto/qdoc/generatedoutput/testdata/testcpp/testcpp.cpp @@ -32,6 +32,7 @@ namespace TestQDoc { /*! \module TestCPP \qtvariable testcpp + \qtcmakepackage QDocTest \title QDoc Test C++ Classes \brief A test module page. |