bool inheritedMember = false;
if (!node->relates()) {
if (node->parent() != (const InnerNode*)fastSection.innerNode && !node->parent()->isAbstract()) {
- if (node->type() != Node::QmlProperty)
+ if (node->type() != Node::QmlProperty) {
inheritedMember = true;
+ }
}
}
if (!showInternal) {
node->setAccess(Node::Private);
node->setStatus(Node::Internal);
+ if (node->subType() == Node::QmlPropertyGroup) {
+ const QmlPropGroupNode* qpgn = static_cast<const QmlPropGroupNode*>(node);
+ NodeList::ConstIterator p = qpgn->childNodes().begin();
+ while (p != qpgn->childNodes().end()) {
+ if ((*p)->type() == Node::QmlProperty) {
+ (*p)->setAccess(Node::Private);
+ (*p)->setStatus(Node::Internal);
+ }
+ ++p;
+ }
+ }
}
}
else if (command == COMMAND_REENTRANT) {
This function is for documenting QML properties. It returns
the list of documentation sections for the children of the
\a qmlClassNode.
-
- Currently, it only handles QML property groups.
*/
-QList<Section> CppCodeMarker::qmlSections(const QmlClassNode* qmlClassNode,
- SynopsisStyle style)
+QList<Section> CppCodeMarker::qmlSections(const QmlClassNode* qmlClassNode, SynopsisStyle style)
{
QList<Section> sections;
if (qmlClassNode) {
writer.writeStartElement("section");
writer.writeAttribute("ref", href);
- writer.writeAttribute("title", fakeNode->fullTitle());
+ if (fakeNode->subType() == Node::QmlClass)
+ writer.writeAttribute("title", tr("%1 Type Reference").arg(fakeNode->fullTitle()));
+ else
+ writer.writeAttribute("title", fakeNode->fullTitle());
if ((fakeNode->subType() == Node::HeaderFile) || (fakeNode->subType() == Node::QmlClass)) {
// Write subsections for all members, obsolete members and Qt 3
/*!
Generates the summary for the \a section. Only used for
sections of QML element documentation.
-
- Currently handles only the QML property group.
*/
void HtmlGenerator::generateQmlSummary(const Section& section,
const Node *relative,