summaryrefslogtreecommitdiffstats
path: root/src/qdoc/doc
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/doc')
-rw-r--r--src/qdoc/doc/qdoc-manual-topiccmds.qdoc26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/qdoc/doc/qdoc-manual-topiccmds.qdoc b/src/qdoc/doc/qdoc-manual-topiccmds.qdoc
index 3e747a7fb..e34471b13 100644
--- a/src/qdoc/doc/qdoc-manual-topiccmds.qdoc
+++ b/src/qdoc/doc/qdoc-manual-topiccmds.qdoc
@@ -1247,9 +1247,8 @@
The \\qmltype command is for documenting a QML type. The command
has one argument, which is the name of the QML type.
- If the QML type is instantiated by a C++ class, that class must be
- specified using the \l{instantiates-command} {\\instantiates}
- context command.
+ If the QML type has an equivalent C++ class, you can specify that class
+ with the \l{instantiates-command}{\\instantiates} context command.
\badcode *
/\1!
@@ -1264,9 +1263,9 @@
\1/
\endcode
- Here, the \e{\\qmltype} comment includes \l{instantiates-command}
- {\\instantiates} to specify that a Transform is instantiated by
- the C++ class QGraphicsTransform. A \\qmltype comment should
+ Here, the \e{\\qmltype} comment includes \e{\\instantiates}
+ to specify that a Transform is the QML counterpart to the
+ C++ class QGraphicsTransform. A \\qmltype comment should
always include a \l {since-command} {\\since} command, because all
QML types are new. It should also include a \l{brief-command}
{\\brief} description. If a QML type is a member of a QML type group,
@@ -1377,12 +1376,13 @@
\target instantiates-command
\section1 \\instantiates
- The \\instantiates command is used in the \l{qmltype-command} {QML
- type} comment of an elemental QML type to specify the name of the
- C++ class that instantiates the QML type.
+ The \\instantiates command must be used in conjunction with the
+ \l{qmltype-command}{\\qmltype} topic command. The command takes a
+ C++ class as its argument. If QDoc cannot find the C++ class, it
+ issues a warning.
- If the QML type is not instantiated by a C++ class, this command
- is not used.
+ Use the \\instantiates command to specify what the type is called in C++.
+ Any one QML type can only be the counterpart of one C++ class.
\badcode *
/\1!
@@ -1398,8 +1398,8 @@
\endcode
Here, the \e{\\qmltype} comment includes \l{instantiates-command}
- {\\instantiates} to specify that a Transform is instantiated by
- the C++ class QGraphicsTransform.
+ {\\instantiates} to specify that a Transform is QGraphicsTransform
+ in C++.
\target typealias-command
\section1 \\typealias