summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/htmlgenerator.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2011-11-21 11:51:01 (GMT)
committerMartin Smith <martin.smith@nokia.com>2011-11-21 11:51:01 (GMT)
commita6a4f5343ac67a4921c86fa70fc1ae49b1ef3b7d (patch)
treeb44ae98f5053f46a9b8c03fa94a16303173111fc /tools/qdoc3/htmlgenerator.cpp
parent68f32a3e4f447f86cad7f1fddbd566227a7bd00d (diff)
downloadQt-a6a4f5343ac67a4921c86fa70fc1ae49b1ef3b7d.zip
Qt-a6a4f5343ac67a4921c86fa70fc1ae49b1ef3b7d.tar.gz
Qt-a6a4f5343ac67a4921c86fa70fc1ae49b1ef3b7d.tar.bz2
qdoc3: qdoc supports \depends in 4.8
This is what you write... /*! \example designer/calculatorbuilder \depends examples/qmlapplicationviewer \title Calculator Builder Example This is what you get... <example name="Calculator Builder Example" docUrl="qthelp://com.trolltech.qt.480/qdoc/designer-calculatorbuilder.html" projectPath="designer/calculatorbuilder/calculatorbuilder.pro" imageUrl="qthelp://com.trolltech.qt.480/qdoc/images/calculatorbuilder-example.png"> <description><![CDATA[The Calculator Builder example shows how to create a user interface from a Qt Designer form at run-time, using the QUiLoader class.]]></description> <tags>calculator,builder</tags> <fileToOpen>designer/calculatorbuilder/main.cpp</fileToOpen> <depends>../../examples/qmlapplicationviewer</depends> </example> Task-number: QTBUG-22838
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index 923d523..a840c93 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -4483,6 +4483,14 @@ void HtmlGenerator::generateManifestFile(QString manifest, QString element)
}
}
}
+ if (!en->dependencies().isEmpty()) {
+ for (int idx=0; idx<en->dependencies().size(); ++idx) {
+ writer.writeStartElement("depends");
+ QString file = "../../" + en->dependencies()[idx];
+ writer.writeCharacters(file);
+ writer.writeEndElement(); // depends
+ }
+ }
writer.writeEndElement(); // example
++i;
}