Fix CMake documentation snippet for QtNetwork

The addition of CMakeLists.txt in other directories made the reference
ambiguous. Also fix the Qt version.

Change-Id: I679d86a302ae6c41b84ded66e3f21c5320e4b325
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
bb10
Kai Koehne 2020-06-17 14:13:38 +02:00
parent f25bd998a7
commit 09f674fd16
2 changed files with 4 additions and 4 deletions

View File

@ -7,6 +7,6 @@ add_executable(mytarget
)
# ![0]
find_package(Qt5 COMPONENTS Network REQUIRED)
target_link_libraries(mytarget Qt5::Network)
find_package(Qt6 COMPONENTS Network REQUIRED)
target_link_libraries(mytarget Qt::Network)
# ![0]

View File

@ -35,7 +35,7 @@
are handled by various C++ classes.
\include module-use.qdocinc using qt module
\snippet CMakeLists.txt 0
\snippet doc/snippets/CMakeLists.txt 0
See also the \l{Build with CMake} overview.
@ -43,7 +43,7 @@
Add \c network to the \c QT variable:
\snippet snippets.pro 0
\snippet doc/snippets/snippets.pro 0
\section1 Articles and Guides