diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-09-03 10:24:11 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-09-03 10:24:11 (GMT) |
commit | 22d8ae9214f1ca094606ef3b34289b72ae00d0d8 (patch) | |
tree | ce9d811a7d80dc3e22530c7a151931b3388350f0 /tools | |
parent | fc2b4733a443fdb3f0d49c472e64d59862ed8bce (diff) | |
parent | 4cb429ce1e1ce5f1cecaceafbe74e6ebde2b6372 (diff) | |
download | Qt-22d8ae9214f1ca094606ef3b34289b72ae00d0d8.zip Qt-22d8ae9214f1ca094606ef3b34289b72ae00d0d8.tar.gz Qt-22d8ae9214f1ca094606ef3b34289b72ae00d0d8.tar.bz2 |
Merge branch 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration into master-integration
* 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration: (33 commits)
Revert readonly BorderImage::sourceSize change
URLs used with scheme handler use appropriate encoding for scheme
Fix memory leak in ListModel custom parser
DEF file update
If automatic translation of input widget is off, skip reset
Prevent leakage of native window handles
QSslCertificate: blacklist fraudulent *.google.com
Symbian: Not possible to catch RequestSoftwareInputPanel in eventFilter
Added an additional check to workaround an issue on Windows.
Exact word bubble doesn't disappear when screen is tapped (fix part 2)
Exact word bubble doesn't disappear when screen is tapped
Compile fix for Symbian 5th and earlier
Symbian: Fix backspace on empty lines of multiline textedits
Handle CloseSoftwareInputPanel event in QCoeFepInputContext
Fix delayed password masking mid-string.
Disabled splitscreen translation still moves screen
Make text rendering working outside the gui thread on Symbian.
Fix softkeys cleanup
Fix clientRect usage in QWidgetPrivate::setGeometry_sys()
Do not allow fullscreen/maximized windows to expand beyond client rect
...
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qdoc3/ditaxmlgenerator.cpp | 5 | ||||
-rw-r--r-- | tools/qdoc3/generator.cpp | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp index 0d5b4d3..e3e32a0 100644 --- a/tools/qdoc3/ditaxmlgenerator.cpp +++ b/tools/qdoc3/ditaxmlgenerator.cpp @@ -1180,7 +1180,10 @@ int DitaXmlGenerator::generateAtom(const Atom *atom, Just output the href as if the image is in the images directory... */ - fileName = QLatin1String("images/") + protectEnc(atom->string()); + if (atom->string()[0] == '/') + fileName = QLatin1String("images") + atom->string(); + else + fileName = QLatin1String("images/") + atom->string(); } if (currentTag() != DT_xref) diff --git a/tools/qdoc3/generator.cpp b/tools/qdoc3/generator.cpp index c20d2b4..355c9b2 100644 --- a/tools/qdoc3/generator.cpp +++ b/tools/qdoc3/generator.cpp @@ -814,10 +814,13 @@ QString Generator::imageFileName(const Node *relative, const QString& fileBase) if (filePath.isEmpty()) return QString(); - return QLatin1String("images/") - + Config::copyFile(relative->doc().location(), - filePath, userFriendlyFilePath, - outputDir() + QLatin1String("/images")); + QString path = Config::copyFile(relative->doc().location(), + filePath, + userFriendlyFilePath, + outputDir() + QLatin1String("/images")); + if (path[0] != '/') + return QLatin1String("images/") + path; + return QLatin1String("images") + path; } void Generator::setImageFileExtensions(const QStringList& extensions) |