diff options
author | David Boddie <david.boddie@nokia.com> | 2011-01-27 15:39:01 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-01-27 15:39:01 (GMT) |
commit | 4a100d27cca824114c9bfa5e88096835fadd8a27 (patch) | |
tree | 7d53d74aaa5a86a54a78b7a1cee0de67d2c7e776 /tools | |
parent | 9d94a365582cfcc31cc10587413932a8f957e5ff (diff) | |
download | Qt-4a100d27cca824114c9bfa5e88096835fadd8a27.zip Qt-4a100d27cca824114c9bfa5e88096835fadd8a27.tar.gz Qt-4a100d27cca824114c9bfa5e88096835fadd8a27.tar.bz2 |
Avoid hard-coding product names in page titles.
Fall back to Qt if no product name is used.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 768be46..196bd44 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -1642,12 +1642,10 @@ void HtmlGenerator::generateHeader(const QString& title, QString shortVersion = myTree->version(); if (shortVersion.count(QChar('.')) == 2) shortVersion.truncate(shortVersion.lastIndexOf(QChar('.'))); - if (!shortVersion.isEmpty()) { - if (project == "QSA") - shortVersion = "QSA " + shortVersion + ": "; - else - shortVersion = "Qt " + shortVersion + ": "; - } + if (!project.isEmpty()) + shortVersion = project + QLatin1String(" ") + shortVersion + QLatin1String(": "); + else + shortVersion = QLatin1String("Qt ") + shortVersion + QLatin1String(": "); // Generating page title out() << " <title>" << shortVersion << protectEnc(title) << "</title>\n"; |