aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlparserstatus.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2020-12-07 16:56:05 +0100
committerTopi Reinio <topi.reinio@qt.io>2020-12-08 11:35:06 +0100
commited6f55ca126c80514e886b3b400a22ba5d443589 (patch)
tree22c2b46f4fa33ed2be61435280ca85779aaa931a /src/qml/qml/qqmlparserstatus.cpp
parentc3860cd04bbc089ef95bc441a1f8f1e46f9606f8 (diff)
Doc: Fix occurrences of \Q_OBJECT in code snippets
'Q_OBJECT', even in a comment, interferes with automoc. Prefixing it with a backslash solves the automoc issue, but documentation looks wrong as content inside \code is taken verbatim. Move code snippets to doc/snippets and refer to them with \snippet commands. Pick-to: 6.0 Change-Id: Ied7fdf87ef5edd2b237498b91b162c19bf7bc636 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlparserstatus.cpp')
-rw-r--r--src/qml/qml/qqmlparserstatus.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/qml/qml/qqmlparserstatus.cpp b/src/qml/qml/qqmlparserstatus.cpp
index cd45e6668b..d2aa679a95 100644
--- a/src/qml/qml/qqmlparserstatus.cpp
+++ b/src/qml/qml/qqmlparserstatus.cpp
@@ -68,19 +68,7 @@ QT_BEGIN_NAMESPACE
To use QQmlParserStatus, you must inherit both a QObject-derived class
and QQmlParserStatus, and use the Q_INTERFACES() macro.
- \code
- class MyObject : public QObject, public QQmlParserStatus
- {
- \Q_OBJECT
- Q_INTERFACES(QQmlParserStatus)
-
- public:
- MyObject(QObject *parent = 0);
- ...
- void classBegin();
- void componentComplete();
- }
- \endcode
+ \snippet code/src_qml_qqmlparserstatus.cpp 0
*/
/*! \internal */