summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r--src/qdoc/cppcodeparser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp
index 7298d1ec2..29e1c0fe6 100644
--- a/src/qdoc/cppcodeparser.cpp
+++ b/src/qdoc/cppcodeparser.cpp
@@ -2678,10 +2678,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,