QDoc: Generate missing image error.
Change-Id: I98faf3b3422fa0a7ebd3f65c7ba64e6dc31bad86 Reviewed-by: Martin Smith <martin.smith@nokia.com>
This commit is contained in:
parent
c30d2c37b0
commit
7ed1ab9076
@ -1206,6 +1206,7 @@ int DitaXmlGenerator::generateAtom(const Atom *atom,
|
|||||||
if (atom->next() != 0)
|
if (atom->next() != 0)
|
||||||
text = atom->next()->string();
|
text = atom->next()->string();
|
||||||
if (fileName.isEmpty()) {
|
if (fileName.isEmpty()) {
|
||||||
|
relative->location().warning(tr("Missing image: %1").arg(protectEnc(atom->string())));
|
||||||
QString images = "images";
|
QString images = "images";
|
||||||
if (!baseDir().isEmpty())
|
if (!baseDir().isEmpty())
|
||||||
images.prepend("../");
|
images.prepend("../");
|
||||||
|
@ -775,6 +775,7 @@ int HtmlGenerator::generateAtom(const Atom *atom,
|
|||||||
if (atom->type() == Atom::Image)
|
if (atom->type() == Atom::Image)
|
||||||
out() << "<p class=\"centerAlign\">";
|
out() << "<p class=\"centerAlign\">";
|
||||||
if (fileName.isEmpty()) {
|
if (fileName.isEmpty()) {
|
||||||
|
relative->location().warning(tr("Missing image: %1").arg(protectEnc(atom->string())));
|
||||||
out() << "<font color=\"red\">[Missing image "
|
out() << "<font color=\"red\">[Missing image "
|
||||||
<< protectEnc(atom->string()) << "]</font>";
|
<< protectEnc(atom->string()) << "]</font>";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user