6#include <QtCore/qstringlist.h>
11
12
13
16
17
18
19
20
23 if (!m_members.contains(node))
24 m_members.append(node);
25 setMemberStatus(node);
29
30
31
32
33
37 std::for_each(m_members.begin(), m_members.end(),
38 [
this](
Node *m) {
this->setMemberStatus(m); });
42
43
44
45
46
47
48
49
50
51
52
53
69
70
71
74 return std::any_of(m_members.cbegin(), m_members.cend(), [](
const Node *member) {
80
81
82
85 return std::any_of(m_members.cbegin(), m_members.cend(), [](
const Node *member) {
91
92
93
94
95
96
99
100
101
102
103
106
107
111 version << m_logicalModuleVersionMajor << m_logicalModuleVersionMinor;
112 version.removeAll(QString());
113 return version.join(
".");
117
118
119
120
121
122
123
126 m_logicalModuleName = info[0];
127 if (info.size() > 1) {
128 QStringList dotSplit = info[1].split(QLatin1Char(
'.'));
129 m_logicalModuleVersionMajor = dotSplit[0];
130 if (dotSplit.size() > 1)
131 m_logicalModuleVersionMinor = dotSplit[1];
133 m_logicalModuleVersionMinor =
"0";
138
139
140
141
142
143
144
145
A class for holding the members of a collection of doc pages.
QString logicalModuleVersion() const override
Returns the logical module version.
bool hasClasses() const override
Returns true if this collection node contains at least one class node.
bool hasNamespaces() const override
Returns true if this collection node contains at least one namespace node.
bool wasSeen() const override
Returns the seen flag data member of this node if it is a NamespaceNode or a CollectionNode.
void setStatus(Status status) override
\reimp
void setLogicalModuleInfo(const QStringList &info) override
This function accepts the logical module info as a string list.
void addMember(Node *node) override
Appends node to the collection node's member list and updates the new member's status.
Status
Specifies the status of the QQmlIncubator.
Combined button and popup list for selecting options.
The Node class is the base class for all the nodes in QDoc's parse tree.
Genus genus() const override
Returns this node's Genus.
virtual Status status() const
Returns the node's status value.
virtual bool isInAPI() const
Returns true if this node is considered to be part of the API as per the InclusionPolicy retrieved fr...
virtual bool isClassNode() const
Returns true if this is an instance of ClassNode.
virtual void setStatus(Status t)
Sets the node's status to t.