diff options
author | kh <qtc-committer@nokia.com> | 2009-06-15 12:00:45 +0200 |
---|---|---|
committer | kh <qtc-committer@nokia.com> | 2009-06-15 12:00:45 +0200 |
commit | f3b534e5cdbcf7ed1bdd0dc3c258d26a8a3a87ab (patch) | |
tree | 66c727ce05e42b3e8abf960401fa04e0ba85a1df /tools | |
parent | 98899a4122565090640672d9aae2c37315f186ce (diff) | |
download | qt4-tools-f3b534e5cdbcf7ed1bdd0dc3c258d26a8a3a87ab.tar.gz |
We only need to filename, not the full path.
Reviewed-by: kh
Diffstat (limited to 'tools')
-rw-r--r-- | tools/assistant/lib/qhelpgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/assistant/lib/qhelpgenerator.cpp b/tools/assistant/lib/qhelpgenerator.cpp index 8512adbdd0..64d9f19929 100644 --- a/tools/assistant/lib/qhelpgenerator.cpp +++ b/tools/assistant/lib/qhelpgenerator.cpp @@ -533,7 +533,7 @@ bool QHelpGenerator::insertFiles(const QStringList &files, const QString &rootPa stream.setCodec(QTextCodec::codecForName(charSet.toLatin1().constData())); title = QHelpGlobal::documentTitle(stream.readAll()); } else { - title = fi.fileName(); + title = fileName.mid(fileName.lastIndexOf(QLatin1Char('/')) + 1); } int fileId = -1; |