diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-08-20 12:09:53 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-08-20 12:09:53 (GMT) |
commit | 03abf319de8920dc1b72782da3e9e0fdf193d9f6 (patch) | |
tree | 1405bf7e452e509fd4935066815a063b30b9a149 /tools/qdoc3/htmlgenerator.cpp | |
parent | 4aafc4e55e0906be0cc39911b2c1a4ffe71c4d91 (diff) | |
parent | f13c060a187149a03b4115b1f62d9690d69fcbda (diff) | |
download | Qt-03abf319de8920dc1b72782da3e9e0fdf193d9f6.zip Qt-03abf319de8920dc1b72782da3e9e0fdf193d9f6.tar.gz Qt-03abf319de8920dc1b72782da3e9e0fdf193d9f6.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index cd2662c..698b516 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -4424,7 +4424,7 @@ bool HtmlGenerator::generatePageElement(QXmlStreamWriter& writer, if (node->access() == Node::Private) return false; - QString t; + QString guid = QUuid::createUuid().toString(); QString url = PageGenerator::fileName(node); QString title; QString rawTitle; @@ -4433,7 +4433,6 @@ bool HtmlGenerator::generatePageElement(QXmlStreamWriter& writer, QXmlStreamAttributes attributes; writer.writeStartElement("page"); - t.setNum(id++); if (node->isInnerNode()) { const InnerNode* inner = static_cast<const InnerNode*>(node); @@ -4511,7 +4510,7 @@ bool HtmlGenerator::generatePageElement(QXmlStreamWriter& writer, } } - writer.writeAttribute("id",t); + writer.writeAttribute("id",guid); writer.writeStartElement("pageWords"); writer.writeCharacters(pageWords.join(" ")); @@ -4546,9 +4545,9 @@ bool HtmlGenerator::generatePageElement(QXmlStreamWriter& writer, Text headingText = Text::sectionHeading(toc.at(i)); QString s = headingText.toString(); writer.writeStartElement("page"); - t.setNum(id++); + guid = QUuid::createUuid().toString(); QString internalUrl = url + "#" + Doc::canonicalTitle(s); - writer.writeAttribute("id",t); + writer.writeAttribute("id",guid); writer.writeStartElement("pageWords"); writer.writeCharacters(pageWords.join(" ")); writer.writeCharacters(" "); |