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:
parent
9828dace05
commit
e361a3f178
@ -369,9 +369,11 @@ static void processQdocconfFile(const QString &fileName)
|
||||
*/
|
||||
QStringList exampleQdocList = config.getExampleQdocFiles();
|
||||
for (int i=0; i<exampleQdocList.size(); ++i) {
|
||||
sources.insert(exampleQdocList[i],exampleQdocList[i]);
|
||||
QString t = exampleQdocList[i].mid(exampleQdocList[i].lastIndexOf('/')+1);
|
||||
sourceFileNames.insert(t,t);
|
||||
if (!sources.contains(exampleQdocList[i])) {
|
||||
sources.insert(exampleQdocList[i],exampleQdocList[i]);
|
||||
QString t = exampleQdocList[i].mid(exampleQdocList[i].lastIndexOf('/')+1);
|
||||
sourceFileNames.insert(t,t);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user