Public Functions
QLAttributeMapItem(LAttribute* attribute, QLAttributeMapItem* parent = nullptr) | |
void | append_child(QLAttributeMapItem* child) |
LAttribute | attribute() const |
QLAttributeMapItem* | child(int index) const |
int | child_count() const |
QMap<QString, QLAttributeMapItem*>& | children() |
int | index() const |
Detailed Description
A QLAttributeMapItem is a QObject that represents the structure of an LAttributeMap when used by a QLAttributeMapView.
Member Function Documentation
QLAttributeMapItem(LAttribute* attribute, QLAttributeMapItem* parent = nullptr)
Constructs an attribute map item.
void append_child(QLAttributeMapItem* child)
Adds child to the list of child items.
LAttribute* attribute() const
Returns a pointer to the attribute associated with the item.
QLAttributeMapItem* child(int index) const
Returns a pointer to the map item at the given index.
If the argument provided for the index parameter does not exist, then nullptr is returned.
int child_count() const
Returns the number of child items that this map item has.
QMap<QString, LThemeItem*>& children()
Returns a reference to the QMap containing the child map items.
int index() const
Returns the index of this item as it appears in the parent's list of child items.