diff options
author | David Boddie <david.boddie@nokia.com> | 2010-12-01 11:04:46 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-12-01 11:04:46 (GMT) |
commit | 0dd0313a194c73508a4fbbf69c716407b781cc6e (patch) | |
tree | d7279f496c58d6c0033095e2b174b5221ba849f6 /tools/qdoc3/htmlgenerator.cpp | |
parent | eae5f69a23d46d237ee2021319d093c580dff679 (diff) | |
download | Qt-0dd0313a194c73508a4fbbf69c716407b781cc6e.zip Qt-0dd0313a194c73508a4fbbf69c716407b781cc6e.tar.gz Qt-0dd0313a194c73508a4fbbf69c716407b781cc6e.tar.bz2 |
Select the appropriate code marker for each file.
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 5f70de4..456654f 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -1341,8 +1341,8 @@ void HtmlGenerator::generateClassLikeNode(const InnerNode *inner, } /*! - Generate the html page for a qdoc file that doesn't map - to an underlying c++ file. + Generate the HTML page for a qdoc file that doesn't map + to an underlying C++ file. */ void HtmlGenerator::generateFakeNode(const FakeNode *fake, CodeMarker *marker) { @@ -1360,6 +1360,9 @@ void HtmlGenerator::generateFakeNode(const FakeNode *fake, CodeMarker *marker) else if (fake->subType() == Node::QmlBasicType) { fullTitle = "QML Basic Type: " + fullTitle; htmlTitle = fullTitle; + + // Replace the marker with a QML code marker. + marker = CodeMarker::markerForLanguage(QLatin1String("QML")); } generateHeader(htmlTitle, fake, marker); @@ -1373,6 +1376,9 @@ void HtmlGenerator::generateFakeNode(const FakeNode *fake, CodeMarker *marker) qml_cn = static_cast<const QmlClassNode*>(fake); sections = marker->qmlSections(qml_cn,CodeMarker::Summary,0); generateTableOfContents(fake,marker,§ions); + + // Replace the marker with a QML code marker. + marker = CodeMarker::markerForLanguage(QLatin1String("QML")); } else if (fake->name() != QString("index.html")) generateTableOfContents(fake,marker,0); |