12
13
16
17
21 m_names.insert(item.name());
25
26
27
28
31 if (
doc().omitEnumItemNames().contains(name))
37
38
41 for (
const auto &item : std::as_const(m_items)) {
42 if (item.name() == name)
49
50
51
54 auto it = std::find_if(m_items.begin(), m_items.end(), [value](EnumItem ev) {
55 return ev.name() == value;
57 if (it != m_items.end())
62
63
64
65
66
78 m_flagsType = typedefNode;
79 typedefNode->setAssociatedEnum(
this);
void addChild(Node *child)
Adds the child to this node's child list and sets the child's parent pointer to this Aggregate.
Node * clone(Aggregate *parent) override
Clone this node on the heap and make the clone a child of parent.
void setFlagsType(TypedefNode *typedefNode)
void addItem(const EnumItem &item)
Add item to the enum type's item list.
QString itemValue(const QString &name) const
Returns the enum value associated with the enum name.
void setSince(const QString &value, const QString &since)
Sets since information to a named enum value, if it exists in this enum.
Access itemAccess(const QString &name) const
Returns the access level of the enumeration item named name.
Combined button and popup list for selecting options.
The Node class is the base class for all the nodes in QDoc's parse tree.
const Doc & doc() const
Returns a reference to the node's Doc data member.
void setParent(Aggregate *n)
Sets the node's parent pointer to n.