aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2021-02-17 12:15:29 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-02-19 07:20:23 +0000
commitaddb2598d7f841af6ab777a4b9d8793e8ef92dba (patch)
tree459f4d629697ceb72b54d94c91f039be57f97395
parent5136cc1f7b0d0012faa19e08a23be37675200935 (diff)
Doc: Fix warnings about snippets in qtdeclarative
Cannot find file to quote from: 'code/backend/backend.pro' Cannot find file to quote from: 'code/doc_src_qtqml.pro' Cannot find file to quote from: 'code/doc_src_qtquick.pro' Change-Id: I26642a375a659a3d8dbda097702ffc2f68d10137 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit ca7d2c1f4ca010096b668108200cd9f1357a5b2e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/qml/doc/src/cppintegration/topic.qdoc7
-rw-r--r--src/qml/doc/src/qtqml.qdoc4
-rw-r--r--src/quick/doc/src/qtquick-cpp.qdoc4
-rw-r--r--src/quick/doc/src/qtquick.qdoc4
4 files changed, 14 insertions, 5 deletions
diff --git a/src/qml/doc/src/cppintegration/topic.qdoc b/src/qml/doc/src/cppintegration/topic.qdoc
index 123ab18779..14a27c9a3f 100644
--- a/src/qml/doc/src/cppintegration/topic.qdoc
+++ b/src/qml/doc/src/cppintegration/topic.qdoc
@@ -53,8 +53,11 @@ The \c QML_ELEMENT macro makes the BackEnd class available in QML.
\li Add the following lines to your project file:
-\snippet code/backend/backend.pro registration
-
+\badcode
+CONFIG += qmltypes
+QML_IMPORT_NAME = io.qt.examples.backend
+QML_IMPORT_MAJOR_VERSION = 1
+\endcode
The BackEnd class is automatically registered as a type, which is accessible
from QML by importing the URL, "\c{io.qt.examples.backend 1.0}".
diff --git a/src/qml/doc/src/qtqml.qdoc b/src/qml/doc/src/qtqml.qdoc
index 23f4a81249..e1ff693195 100644
--- a/src/qml/doc/src/qtqml.qdoc
+++ b/src/qml/doc/src/qtqml.qdoc
@@ -75,7 +75,9 @@ See also the \l{Build with CMake} overview.
To configure the module for building with qmake, add the module as a value of the QT variable in the project's .pro file:
-\snippet code/doc_src_qtqml.pro 0
+\badcode
+QT += qml
+\endcode
\section1 QML and QML Types
diff --git a/src/quick/doc/src/qtquick-cpp.qdoc b/src/quick/doc/src/qtquick-cpp.qdoc
index 9a93ee32d9..225a96be0f 100644
--- a/src/quick/doc/src/qtquick-cpp.qdoc
+++ b/src/quick/doc/src/qtquick-cpp.qdoc
@@ -43,7 +43,9 @@
To link against the module, add this line to your \l qmake \c
.pro file:
- \snippet code/doc_src_qtquick.pro 0
+ \badcode
+ QT += quick
+ \endcode
\endif
For more information on the Qt Quick module, see the
diff --git a/src/quick/doc/src/qtquick.qdoc b/src/quick/doc/src/qtquick.qdoc
index 49bd7c5ac1..46dfa5651f 100644
--- a/src/quick/doc/src/qtquick.qdoc
+++ b/src/quick/doc/src/qtquick.qdoc
@@ -81,7 +81,9 @@ See also the \l{Build with CMake} overview.
To configure the module for building with qmake, add the module as a value of
the QT variable in the project's .pro file:
-\snippet code/doc_src_qtquick.pro 0
+\badcode
+QT += quick
+\endcode
\section1 Important Concepts in Qt Quick