qdoc: Don't always add example .qdoc files to source list

When qdoc finds a .qdoc file in an exampledirs directory,
it only adds it to the source list if it isn't already in
the source list. This may be overkill, but it's safe.

Change-Id: I2c5714c968f06e90f9b29b3a5481f80469e19ced
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
This commit is contained in:
Martin Smith 2012-08-07 09:50:33 +02:00 committed by Qt by Nokia
parent 9828dace05
commit e361a3f178

View File

@ -369,10 +369,12 @@ static void processQdocconfFile(const QString &fileName)
*/
QStringList exampleQdocList = config.getExampleQdocFiles();
for (int i=0; i<exampleQdocList.size(); ++i) {
if (!sources.contains(exampleQdocList[i])) {
sources.insert(exampleQdocList[i],exampleQdocList[i]);
QString t = exampleQdocList[i].mid(exampleQdocList[i].lastIndexOf('/')+1);
sourceFileNames.insert(t,t);
}
}
/*
Parse each header file in the set using the appropriate parser and add it