diff options
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r-- | src/qdoc/cppcodeparser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp index 47cb455eb..c81a385a3 100644 --- a/src/qdoc/cppcodeparser.cpp +++ b/src/qdoc/cppcodeparser.cpp @@ -1293,10 +1293,12 @@ void CppCodeParser::createExampleFileNodes(DocumentNode *dn) } foreach (const QString &exampleFile, exampleFiles) { - new DocumentNode(dn, + DocumentNode *fileNode = new DocumentNode(dn, exampleFile.mid(sizeOfBoringPartOfName), Node::File, Node::NoPageType); + if (fileNode->name().endsWith(".qml")) + fileNode->setGenus(Node::QML); } foreach (const QString &imageFile, imageFiles) { new DocumentNode(dn, |