qdoc: Make image paths relative to html file
Task-number: QTBUG-28080 Change-Id: Ie552cacdf736f9f6da3148a11ef2362248775e1a Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
parent
2862697e90
commit
23ea027841
@ -1443,10 +1443,11 @@ QString Generator::imageFileName(const Node *relative, const QString& fileBase)
|
||||
filePath,
|
||||
userFriendlyFilePath,
|
||||
outputDir() + QLatin1String("/images"));
|
||||
QString images = "images";
|
||||
if (path[0] != '/')
|
||||
images.append(QLatin1Char('/'));
|
||||
return images + path;
|
||||
int images_slash = path.lastIndexOf("images/");
|
||||
QString relImagePath;
|
||||
if (images_slash != -1)
|
||||
relImagePath = path.mid(images_slash);
|
||||
return relImagePath;
|
||||
}
|
||||
|
||||
QString Generator::indent(int level, const QString& markedCode)
|
||||
|
Loading…
Reference in New Issue
Block a user