Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/qdoc3/helpprojectwriter.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the tools applications of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    119119    typeHash["target"] = Node::Target;
    120120
    121     QHash<QString, FakeNode::SubType> subTypeHash;
    122     subTypeHash["example"] = FakeNode::Example;
    123     subTypeHash["headerfile"] = FakeNode::HeaderFile;
    124     subTypeHash["file"] = FakeNode::File;
    125     subTypeHash["group"] = FakeNode::Group;
    126     subTypeHash["module"] = FakeNode::Module;
    127     subTypeHash["page"] = FakeNode::Page;
    128     subTypeHash["externalpage"] = FakeNode::ExternalPage;
    129 
    130     QSet<FakeNode::SubType> allSubTypes = QSet<FakeNode::SubType>::fromList(subTypeHash.values());
     121    QHash<QString, Node::SubType> subTypeHash;
     122    subTypeHash["example"] = Node::Example;
     123    subTypeHash["headerfile"] = Node::HeaderFile;
     124    subTypeHash["file"] = Node::File;
     125    subTypeHash["group"] = Node::Group;
     126    subTypeHash["module"] = Node::Module;
     127    subTypeHash["page"] = Node::Page;
     128    subTypeHash["externalpage"] = Node::ExternalPage;
     129#ifdef QDOC_QML
     130    subTypeHash["qmlclass"] = Node::QmlClass;
     131#endif
     132
     133    QSet<Node::SubType> allSubTypes = QSet<Node::SubType>::fromList(subTypeHash.values());
    131134
    132135    foreach (const QString &selector, selectors) {
     
    140143            pieces = pieces[1].split(",");
    141144            if (typeHash.contains(lower)) {
    142                 QSet<FakeNode::SubType> subTypes;
     145                QSet<Node::SubType> subTypes;
    143146                for (int i = 0; i < pieces.size(); ++i) {
    144147                    QString lower = pieces[i].toLower();
     
    185188    } else if (node->type() == Node::Fake) {
    186189        const FakeNode *fake = static_cast<const FakeNode *>(node);
    187         details << fake->fullTitle();
    188         details << fake->fullTitle();
     190#ifdef QDOC_QML
     191        if (fake->subType() == Node::QmlClass) {
     192            details << (QmlClassNode::qmlOnly ? fake->name() : fake->fullTitle());
     193            details << "QML." + fake->name();
     194        } else
     195#endif
     196        {
     197            details << fake->fullTitle();
     198            details << fake->fullTitle();
     199        }
    189200    } else {
    190201        details << node->name();
     
    236247                const FakeNode *fakeNode = static_cast<const FakeNode *>(node);
    237248                if (subproject.selectors[node->type()].contains(fakeNode->subType()) &&
    238                     fakeNode->subType() != FakeNode::ExternalPage &&
     249                    fakeNode->subType() != Node::ExternalPage &&
    239250                    !fakeNode->fullTitle().isEmpty())
    240251
     
    325336        case Node::Fake: {
    326337            const FakeNode *fakeNode = static_cast<const FakeNode*>(node);
    327             if (fakeNode->subType() != FakeNode::ExternalPage &&
     338            if (fakeNode->subType() != Node::ExternalPage &&
    328339                !fakeNode->fullTitle().isEmpty()) {
    329340
    330                 if (fakeNode->subType() != FakeNode::File) {
     341                if (fakeNode->subType() != Node::File) {
    331342                    if (fakeNode->doc().hasKeywords()) {
    332343                        foreach (const Atom *keyword, fakeNode->doc().keywords()) {
     
    486497            //            qDebug() << "Title:" << fakeNode->fullTitle();
    487498           
    488             if (fakeNode->subType() == FakeNode::HeaderFile) {
     499            if (fakeNode->subType() == Node::HeaderFile) {
    489500
    490501                // Write subsections for all members, obsolete members and Qt 3
     
    610621                        writeNode(project, writer, nextPage);
    611622                        nextTitle = nextPage->links().value(Node::NextLink).first;
    612                         if (nextTitle.isEmpty())
     623                        if(nextTitle.isEmpty())
    613624                            break;
    614625                        nextPage = const_cast<FakeNode *>(tree->findFakeNodeByTitle(nextTitle));
Note: See TracChangeset for help on using the changeset viewer.