Changeset 846 for trunk/tools/qdoc3/codeparser.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/tools/qdoc3/codeparser.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 44 44 */ 45 45 46 #include <QtCore>47 46 #include "codeparser.h" 48 47 #include "node.h" 49 48 #include "tree.h" 50 49 #include "config.h" 50 #include <QDebug> 51 51 52 52 QT_BEGIN_NAMESPACE … … 60 60 #define COMMAND_NONREENTRANT Doc::alias(QLatin1String("nonreentrant")) 61 61 #define COMMAND_OBSOLETE Doc::alias(QLatin1String("obsolete")) 62 #define COMMAND_PAGEKEYWORDS Doc::alias(QLatin1String("pagekeywords")) 62 63 #define COMMAND_PRELIMINARY Doc::alias(QLatin1String("preliminary")) 63 64 #define COMMAND_INPUBLICGROUP Doc::alias(QLatin1String("inpublicgroup")) … … 70 71 QList<CodeParser *> CodeParser::parsers; 71 72 bool CodeParser::showInternal = false; 73 QMap<QString,QString> CodeParser::nameToTitle; 72 74 73 75 /*! … … 171 173 << COMMAND_NONREENTRANT 172 174 << COMMAND_OBSOLETE 175 << COMMAND_PAGEKEYWORDS 173 176 << COMMAND_PRELIMINARY 174 177 << COMMAND_INPUBLICGROUP … … 231 234 node->setSince(arg); 232 235 } 236 else if (command == COMMAND_PAGEKEYWORDS) { 237 node->addPageKeywords(arg); 238 } 233 239 else if (command == COMMAND_SUBTITLE) { 234 240 if (node->type() == Node::Fake) { … … 246 252 FakeNode *fake = static_cast<FakeNode *>(node); 247 253 fake->setTitle(arg); 254 nameToTitle.insert(fake->name(),arg); 248 255 } 249 256 else … … 252 259 } 253 260 261 /*! 262 Find the page title given the page \a name and return it. 263 */ 264 const QString CodeParser::titleFromName(const QString& name) 265 { 266 const QString t = nameToTitle.value(name); 267 return t; 268 } 269 254 270 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.