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:
parent
5031aee972
commit
8a0f48ab65
@ -4444,7 +4444,7 @@ void HtmlGenerator::generateManifestFile(QString manifest, QString element)
|
|||||||
fileName.endsWith(".h") ||
|
fileName.endsWith(".h") ||
|
||||||
fileName.endsWith(".qml")))
|
fileName.endsWith(".qml")))
|
||||||
baseName.truncate(baseName.lastIndexOf(QChar('.')));
|
baseName.truncate(baseName.lastIndexOf(QChar('.')));
|
||||||
if (baseName.toLower() == ename) {
|
if (baseName.compare(ename, Qt::CaseInsensitive) == 0) {
|
||||||
if (!usedNames.contains(fileName)) {
|
if (!usedNames.contains(fileName)) {
|
||||||
writer.writeStartElement("fileToOpen");
|
writer.writeStartElement("fileToOpen");
|
||||||
if (file.startsWith("demos/"))
|
if (file.startsWith("demos/"))
|
||||||
|
Loading…
Reference in New Issue
Block a user