qdoc: Improve fileToOpen detection for examples manifest

When looking for a suitable "fileToOpen", do a case insensitive
file name comparision. So that it also works in this scenario:
  AnExample/anexample.qml

Change-Id: Ic4cd1d59a7a35e534bfd26cd174a3c2ab5383025
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
This commit is contained in:
Alessandro Portale 2012-05-15 15:30:31 +02:00 committed by Qt by Nokia
parent 5031aee972
commit 8a0f48ab65

View File

@ -4444,7 +4444,7 @@ void HtmlGenerator::generateManifestFile(QString manifest, QString element)
fileName.endsWith(".h") ||
fileName.endsWith(".qml")))
baseName.truncate(baseName.lastIndexOf(QChar('.')));
if (baseName.toLower() == ename) {
if (baseName.compare(ename, Qt::CaseInsensitive) == 0) {
if (!usedNames.contains(fileName)) {
writer.writeStartElement("fileToOpen");
if (file.startsWith("demos/"))