From 2e685628b9cb1cd2de585134c2122c2fc4aa2733 Mon Sep 17 00:00:00 2001
From: Topi Reinio <topi.reinio@digia.com>
Date: Wed, 8 May 2013 12:47:41 +0200
Subject: [PATCH] qdoc: Don't try to add html files for images in .qhp

QDoc adds document nodes as files into the .qhp, including nodes with
image subtype. This will generate a lot of unnecessary warnings for
missing '<image>.png.html' files from qhelpgenerator when running
'make docs'.

This change makes qdoc skip the above step for image nodes to remove
the warnings. The images are still always added to .qch in a separate
step.

Change-Id: Ib07fc8a3ce65f5d4dd700daf00f5f6a36f74a696
Reviewed-by: Martin Smith <martin.smith@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
---
 src/tools/qdoc/helpprojectwriter.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tools/qdoc/helpprojectwriter.cpp b/src/tools/qdoc/helpprojectwriter.cpp
index fdba15700f3..0cdb2de7763 100644
--- a/src/tools/qdoc/helpprojectwriter.cpp
+++ b/src/tools/qdoc/helpprojectwriter.cpp
@@ -375,6 +375,7 @@ bool HelpProjectWriter::generateSection(HelpProject &project,
     case Node::Document: {
         const DocNode *docNode = static_cast<const DocNode*>(node);
         if (docNode->subType() != Node::ExternalPage &&
+                docNode->subType() != Node::Image &&
                 !docNode->fullTitle().isEmpty()) {
 
             if (docNode->subType() != Node::File) {
-- 
GitLab