diff options
Diffstat (limited to 'src/qdoc/htmlgenerator.cpp')
-rw-r--r-- | src/qdoc/htmlgenerator.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/qdoc/htmlgenerator.cpp b/src/qdoc/htmlgenerator.cpp index 7eeb3705c..39ac26445 100644 --- a/src/qdoc/htmlgenerator.cpp +++ b/src/qdoc/htmlgenerator.cpp @@ -1956,9 +1956,7 @@ void HtmlGenerator::generateHeader(const QString& title, if (node && !node->doc().location().isEmpty()) out() << "<!-- " << node->doc().location().fileName() << " -->\n"; - QString shortVersion = qdb_->version(); - if (shortVersion.count(QChar('.')) == 2) - shortVersion.truncate(shortVersion.lastIndexOf(QChar('.'))); + QString projectVersion = qdb_->version(); //determine the rest of the <title> element content: "title | titleSuffix version" QString titleSuffix; @@ -1987,8 +1985,8 @@ void HtmlGenerator::generateHeader(const QString& title, titleSuffix.clear(); //for pages that duplicate the version, clear the duplicate - if (title.contains(shortVersion) || titleSuffix.contains(shortVersion)) - shortVersion.clear(); + if (title.contains(projectVersion) || titleSuffix.contains(projectVersion)) + projectVersion.clear(); QString divider; if (!titleSuffix.isEmpty() && !title.isEmpty()) @@ -2000,8 +1998,8 @@ void HtmlGenerator::generateHeader(const QString& title, << divider << titleSuffix; - if (!shortVersion.isEmpty()) - out() << QLatin1Char(' ') << shortVersion; + if (!projectVersion.isEmpty()) + out() << QLatin1Char(' ') << projectVersion; out() << "</title>\n"; |