Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/qdoc3/codeparser.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4444*/
    4545
    46 #include <QtCore>
    4746#include "codeparser.h"
    4847#include "node.h"
    4948#include "tree.h"
    5049#include "config.h"
     50#include <QDebug>
    5151
    5252QT_BEGIN_NAMESPACE
     
    6060#define COMMAND_NONREENTRANT            Doc::alias(QLatin1String("nonreentrant"))
    6161#define COMMAND_OBSOLETE                Doc::alias(QLatin1String("obsolete"))
     62#define COMMAND_PAGEKEYWORDS            Doc::alias(QLatin1String("pagekeywords"))
    6263#define COMMAND_PRELIMINARY             Doc::alias(QLatin1String("preliminary"))
    6364#define COMMAND_INPUBLICGROUP           Doc::alias(QLatin1String("inpublicgroup"))
     
    7071QList<CodeParser *> CodeParser::parsers;
    7172bool CodeParser::showInternal = false;
     73QMap<QString,QString> CodeParser::nameToTitle;
    7274
    7375/*!
     
    171173                           << COMMAND_NONREENTRANT
    172174                           << COMMAND_OBSOLETE
     175                           << COMMAND_PAGEKEYWORDS
    173176                           << COMMAND_PRELIMINARY
    174177                           << COMMAND_INPUBLICGROUP
     
    231234        node->setSince(arg);
    232235    }
     236    else if (command == COMMAND_PAGEKEYWORDS) {
     237        node->addPageKeywords(arg);
     238    }
    233239    else if (command == COMMAND_SUBTITLE) {
    234240        if (node->type() == Node::Fake) {
     
    246252            FakeNode *fake = static_cast<FakeNode *>(node);
    247253            fake->setTitle(arg);
     254            nameToTitle.insert(fake->name(),arg);
    248255        }
    249256        else
     
    252259}
    253260
     261/*!
     262  Find the page title given the page \a name and return it.
     263 */
     264const QString CodeParser::titleFromName(const QString& name)
     265{
     266    const QString t = nameToTitle.value(name);
     267    return t;
     268}
     269
    254270QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.