diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-09-24 13:30:29 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-09-24 13:30:29 (GMT) |
commit | 4ea898fe70fd7a77a95c87668807f8af8342780b (patch) | |
tree | 65862bfbf9df92591ee796796db804f3dc2d93c8 /tools/qdoc3/pagegenerator.cpp | |
parent | 6cff9860c5390cceee4973fce20798939fae088b (diff) | |
download | Qt-4ea898fe70fd7a77a95c87668807f8af8342780b.zip Qt-4ea898fe70fd7a77a95c87668807f8af8342780b.tar.gz Qt-4ea898fe70fd7a77a95c87668807f8af8342780b.tar.bz2 |
qdoc: Corrected many GUIDs.
Still more to do here.
Diffstat (limited to 'tools/qdoc3/pagegenerator.cpp')
-rw-r--r-- | tools/qdoc3/pagegenerator.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/qdoc3/pagegenerator.cpp b/tools/qdoc3/pagegenerator.cpp index 39ee98b..f4c471c 100644 --- a/tools/qdoc3/pagegenerator.cpp +++ b/tools/qdoc3/pagegenerator.cpp @@ -257,7 +257,12 @@ QString PageGenerator::fileBase(const Node *node) const return res; } -QString PageGenerator::fileName(const Node *node) const +/*! + If the \a node has a URL, return the URL as the file name. + Otherwise, construct the file name from the fileBase() and + the fileExtension(), and return the constructed name. + */ +QString PageGenerator::fileName(const Node* node) const { if (!node->url().isEmpty()) return node->url(); @@ -268,9 +273,12 @@ QString PageGenerator::fileName(const Node *node) const return name; } +/*! + Return the current output file name. + */ QString PageGenerator::outFileName() { - return QFileInfo(static_cast<QFile *>(out().device())->fileName()).fileName(); + return QFileInfo(static_cast<QFile*>(out().device())->fileName()).fileName(); } /*! @@ -302,6 +310,11 @@ void PageGenerator::endSubPage() delete outStreamStack.pop(); } +/*! + Used for writing to the current output stream. Returns a + reference to the crrent output stream, which is then used + with the \c {<<} operator for writing. + */ QTextStream &PageGenerator::out() { return *outStreamStack.top(); |