diff options
author | Martin Smith <martin.smith@nokia.com> | 2011-02-22 11:24:29 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2011-02-22 11:24:29 (GMT) |
commit | 9c93c18d8b5eb2df5fa8feb1bc4d076071501e68 (patch) | |
tree | 83f723d761c86a982a744dcc8f9f2c4011fe6209 /tools/qdoc3/doc/qdoc-manual.qdoc | |
parent | f0eadbc92d06706fee765796408a9bfca077e0d2 (diff) | |
download | Qt-9c93c18d8b5eb2df5fa8feb1bc4d076071501e68.zip Qt-9c93c18d8b5eb2df5fa8feb1bc4d076071501e68.tar.gz Qt-9c93c18d8b5eb2df5fa8feb1bc4d076071501e68.tar.bz2 |
qdoc: More updating command descriptions.
Diffstat (limited to 'tools/qdoc3/doc/qdoc-manual.qdoc')
-rw-r--r-- | tools/qdoc3/doc/qdoc-manual.qdoc | 160 |
1 files changed, 71 insertions, 89 deletions
diff --git a/tools/qdoc3/doc/qdoc-manual.qdoc b/tools/qdoc3/doc/qdoc-manual.qdoc index d6acc29..db2a976 100644 --- a/tools/qdoc3/doc/qdoc-manual.qdoc +++ b/tools/qdoc3/doc/qdoc-manual.qdoc @@ -4702,120 +4702,102 @@ \target macro-command \section1 \\macro - The \\macro command allows you to document a C++ macro. + The \\macro command is for documententin a C++ macro. The argument + is the macro in one of three styles: function-like macros like + Q_ASSERT(), declaration-style macros like Q_PROPERTY(), and macros + without parentheses like Q_OBJECT. - The command follows \l {topic argument} {the general - topic command convention} for the argument. - - QDoc recognizes three different macro syntax: function-like - macros like Q_ASSERT(), declaration-style macros like - Q_PROPERTY() and macros without parentheses like Q_OBJECT. - - The \\macro command must be followed by a \l - {relates-command} {\\relates} command which attaches the - documentation to that of a related class, header file. or - namespace. Otherwise the documentation will be lost. - - For example: - - \code - / *! - \macro void Q_ASSERT(bool test) - \relates <QtGlobal> - - Prints a warning message containing the source code - file name and line number if \a test is false. + The \\macro comment must contain a \l {relates-command} + {\\relates} command that attaches the macro comment to a class, + header file, or namespace. Otherwise, the documentation will be + lost. Here are three example macro comments followed by what they + might look like in \c {qtglobal.html} or \c {qobject.html}: - ... - - \sa Q_ASSERT_X(), qFatal(), {Debugging Techniques} - * / - \endcode - - QDoc renders this as: - - \quotation - \raw HTML - <h3>void Q_ASSERT ( bool <i>test</i> )</h3> - \endraw - - Prints a warning message containing the source code - file name and line number if \a test is false. - - ... + \code + / *! + \macro void Q_ASSERT(bool test) + \relates <QtGlobal> - See also Q_ASSERT_X(), qFatal() and \l {Debugging - Techniques}. - \endquotation + Prints a warning message containing the source code + file name and line number if \a test is false. - in qtglobal.html. And + ... - \code - / *! - \macro Q_PROPERTY(...) - \relates QObject + \sa Q_ASSERT_X(), qFatal(), {Debugging Techniques} + * / + \endcode - This macro declares a QObject property. The syntax is: + \quotation + \raw HTML + <h3>void Q_ASSERT ( bool <i>test</i> )</h3> + \endraw - ... + Prints a warning message containing the source code + file name and line number if \a test is false. - \sa {Qt's Property System} - * / - \endcode + ... - QDoc renders this as: + See also Q_ASSERT_X(), qFatal() and \l {Debugging Techniques}. + + \endquotation - \quotation - \raw HTML - <h3>Q_PROPERTY ( ... )</h3> - \endraw + \code + / *! + \macro Q_PROPERTY(...) + \relates QObject - This macro declares a QObject property. The syntax is: + This macro declares a QObject property. The syntax is: - ... + ... - See also \l {Qt's Property System}. - \endquotation + \sa {Qt's Property System} + * / + \endcode - in qobject.html. And + \quotation + \raw HTML + <h3>Q_PROPERTY ( ... )</h3> + \endraw - \code - / *! - \macro Q_OBJECT - \relates QObject + This macro declares a QObject property. The syntax is: - The Q_OBJECT macro must appear in the private section - of a class definition that declares its own signals and - slots or that uses other services provided by Qt's - meta-object system. + ... - ... + See also \l {Qt's Property System}. + \endquotation - \sa {Meta-Object System}, {Signals and Slots}, {Qt's - Property System} - * / - \endcode + \code + / *! + \macro Q_OBJECT + \relates QObject - QDoc renders this as: + The Q_OBJECT macro must appear in the private section + of a class definition that declares its own signals and + slots or that uses other services provided by Qt's + meta-object system. - \quotation - \raw HTML - <h3>Q_OBJECT</h3> - \endraw + ... - The Q_OBJECT macro must appear in the private section - of a class definition that declares its own signals and - slots or that uses other services provided by Qt's - meta-object system. + \sa {Meta-Object System}, {Signals and Slots}, {Qt's + Property System} + * / + \endcode - ... + \quotation + \raw HTML + <h3>Q_OBJECT</h3> + \endraw - See also \l {Meta-Object System}, \l {Signals & - Slots} and \l {Qt's Property System}. - \endquotation + The Q_OBJECT macro must appear in the private section + of a class definition that declares its own signals and + slots or that uses other services provided by Qt's + meta-object system. - in qobject.html. + ... + See also \l {Meta-Object System}, \l {Signals & + Slots} and \l {Qt's Property System}. + \endquotation \target module-command \section1 \\module |