diff options
author | Martin Smith <msmith@trolltech.com> | 2010-02-11 10:31:36 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-02-11 10:31:36 (GMT) |
commit | 802051dd1eb8dd63e84ac0c241f560d8cdf350c5 (patch) | |
tree | 32b681c0925298598ba2e0bb56e3d1b09f2f8eea /tools/qdoc3/codeparser.cpp | |
parent | 9a83bf2676dabdf36f9ca491b480b50d8e7ed93d (diff) | |
download | Qt-802051dd1eb8dd63e84ac0c241f560d8cdf350c5.zip Qt-802051dd1eb8dd63e84ac0c241f560d8cdf350c5.tar.gz Qt-802051dd1eb8dd63e84ac0c241f560d8cdf350c5.tar.bz2 |
qdoc3: Added curly braces in switch statement for braindead compiler.
Also added the \pagekeywords command.
Task: QTBUG-7877
Diffstat (limited to 'tools/qdoc3/codeparser.cpp')
-rw-r--r-- | tools/qdoc3/codeparser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qdoc3/codeparser.cpp b/tools/qdoc3/codeparser.cpp index 3ad3372..5ae63ac 100644 --- a/tools/qdoc3/codeparser.cpp +++ b/tools/qdoc3/codeparser.cpp @@ -59,6 +59,7 @@ QT_BEGIN_NAMESPACE #define COMMAND_MAINCLASS Doc::alias(QLatin1String("mainclass")) #define COMMAND_NONREENTRANT Doc::alias(QLatin1String("nonreentrant")) #define COMMAND_OBSOLETE Doc::alias(QLatin1String("obsolete")) +#define COMMAND_PAGEKEYWORDS Doc::alias(QLatin1String("pagekeywords")) #define COMMAND_PRELIMINARY Doc::alias(QLatin1String("preliminary")) #define COMMAND_INPUBLICGROUP Doc::alias(QLatin1String("inpublicgroup")) #define COMMAND_REENTRANT Doc::alias(QLatin1String("reentrant")) @@ -170,6 +171,7 @@ QSet<QString> CodeParser::commonMetaCommands() << COMMAND_MAINCLASS << COMMAND_NONREENTRANT << COMMAND_OBSOLETE + << COMMAND_PAGEKEYWORDS << COMMAND_PRELIMINARY << COMMAND_INPUBLICGROUP << COMMAND_REENTRANT @@ -230,6 +232,9 @@ void CodeParser::processCommonMetaCommand(const Location &location, else if (command == COMMAND_SINCE) { node->setSince(arg); } + else if (command == COMMAND_PAGEKEYWORDS) { + node->addPageKeywords(arg); + } else if (command == COMMAND_SUBTITLE) { if (node->type() == Node::Fake) { FakeNode *fake = static_cast<FakeNode *>(node); |