summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-01-27 15:50:45 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-01-27 15:50:45 (GMT)
commitef629c2dc4fb42446e89c1b6fbe4160d8a5e6c9f (patch)
treeda25b5dd0d5f793c9b67686ccba319ccefa3ac25 /tools
parent339e3804abf1dbeac9fe89699c2dc4ebc94d5cdd (diff)
parent4a100d27cca824114c9bfa5e88096835fadd8a27 (diff)
downloadQt-ef629c2dc4fb42446e89c1b6fbe4160d8a5e6c9f.zip
Qt-ef629c2dc4fb42446e89c1b6fbe4160d8a5e6c9f.tar.gz
Qt-ef629c2dc4fb42446e89c1b6fbe4160d8a5e6c9f.tar.bz2
Merge branch 'qdoc-simplified' into 4.7
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp10
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";