From 3fa50b7b4167940f44fbf30b5a51c54d4f3d9559 Mon Sep 17 00:00:00 2001 From: Nico Vertriest Date: Tue, 16 Feb 2021 09:04:32 +0100 Subject: [PATCH] Doc: Fix warnings about wrong snippet path or missing .pro file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-91147 Change-Id: I6a55b2b713dd70cf1cbb0b93a8d4152e175e2c4d Reviewed-by: Topi Reiniƶ --- src/dbus/doc/snippets/snippets.pro | 3 +++ src/network/doc/src/qtnetwork.qdoc | 2 +- src/opengl/doc/src/qtopengl-index.qdoc | 2 +- src/printsupport/doc/snippets/snippets.pro | 3 +++ src/printsupport/doc/src/qtprintsupport-index.qdoc | 2 +- src/sql/doc/snippets/code/code.pro | 3 +++ src/testlib/doc/snippets/code/code.pro | 3 +++ src/testlib/doc/snippets/code/doc_src_qtestlib.pro | 11 +++++++++++ src/xml/doc/snippets/snippets.pro | 3 +++ 9 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/dbus/doc/snippets/snippets.pro create mode 100644 src/printsupport/doc/snippets/snippets.pro create mode 100644 src/sql/doc/snippets/code/code.pro create mode 100644 src/testlib/doc/snippets/code/code.pro create mode 100644 src/testlib/doc/snippets/code/doc_src_qtestlib.pro create mode 100644 src/xml/doc/snippets/snippets.pro diff --git a/src/dbus/doc/snippets/snippets.pro b/src/dbus/doc/snippets/snippets.pro new file mode 100644 index 0000000000..6c3b57fec9 --- /dev/null +++ b/src/dbus/doc/snippets/snippets.pro @@ -0,0 +1,3 @@ +#! [qmake_use] +QT += dbus +#! [qmake_use] diff --git a/src/network/doc/src/qtnetwork.qdoc b/src/network/doc/src/qtnetwork.qdoc index 38f344482a..629e0126e0 100644 --- a/src/network/doc/src/qtnetwork.qdoc +++ b/src/network/doc/src/qtnetwork.qdoc @@ -43,7 +43,7 @@ Add \c network to the \c QT variable: - \snippet doc/snippets/network/network.pro 0 + \snippet network/network.pro 0 \section1 Articles and Guides diff --git a/src/opengl/doc/src/qtopengl-index.qdoc b/src/opengl/doc/src/qtopengl-index.qdoc index e4980e5974..4b975758a9 100644 --- a/src/opengl/doc/src/qtopengl-index.qdoc +++ b/src/opengl/doc/src/qtopengl-index.qdoc @@ -78,7 +78,7 @@ See also the \l {Build with CMake} overview. \include module-use.qdocinc building with qmake - \snippet snippets/snippets.pro qmake_use + \snippet snippets.pro qmake_use \section1 Module Evolution \l{Changes to Qt OpenGL} lists important changes in the module API diff --git a/src/printsupport/doc/snippets/snippets.pro b/src/printsupport/doc/snippets/snippets.pro new file mode 100644 index 0000000000..ea1f634ac1 --- /dev/null +++ b/src/printsupport/doc/snippets/snippets.pro @@ -0,0 +1,3 @@ +#! [qmake_use] +QT += printsupport +#! [qmake_use] diff --git a/src/printsupport/doc/src/qtprintsupport-index.qdoc b/src/printsupport/doc/src/qtprintsupport-index.qdoc index cf2f2d4243..16bc373bc2 100644 --- a/src/printsupport/doc/src/qtprintsupport-index.qdoc +++ b/src/printsupport/doc/src/qtprintsupport-index.qdoc @@ -172,7 +172,7 @@ See also the \l {Build with CMake} overview. \include module-use.qdocinc building with qmake - \snippet snippets/snippets.pro qmake_use + \snippet snippets.pro qmake_use \section1 Module Evolution \l{Changes to Qt Print Support} lists important changes in the module API diff --git a/src/sql/doc/snippets/code/code.pro b/src/sql/doc/snippets/code/code.pro new file mode 100644 index 0000000000..d088ce94e3 --- /dev/null +++ b/src/sql/doc/snippets/code/code.pro @@ -0,0 +1,3 @@ +#! [qmake_use] +QT += sql +#! [qmake_use] diff --git a/src/testlib/doc/snippets/code/code.pro b/src/testlib/doc/snippets/code/code.pro new file mode 100644 index 0000000000..8058862d17 --- /dev/null +++ b/src/testlib/doc/snippets/code/code.pro @@ -0,0 +1,3 @@ +#! [qmake_use] +QT += testlib +#! [qmake_use] diff --git a/src/testlib/doc/snippets/code/doc_src_qtestlib.pro b/src/testlib/doc/snippets/code/doc_src_qtestlib.pro new file mode 100644 index 0000000000..c4aeb5e99c --- /dev/null +++ b/src/testlib/doc/snippets/code/doc_src_qtestlib.pro @@ -0,0 +1,11 @@ +#! [1] +QT += testlib +#! [1] + +#! [2] +CONFIG += testcase +#! [2] + +#! [3] +CONFIG += no_testcase_installs +#! [3] diff --git a/src/xml/doc/snippets/snippets.pro b/src/xml/doc/snippets/snippets.pro new file mode 100644 index 0000000000..e08373a539 --- /dev/null +++ b/src/xml/doc/snippets/snippets.pro @@ -0,0 +1,3 @@ +#! [qmake_use] +QT += xml +#! [qmake_use]