|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
A "key: value" style node for a dev tools model. More...
#include <qgsdevtoolsmodelnode.h>

Public Member Functions | |
| QgsDevToolsModelValueNode (const QString &key, const QString &value, const QColor &color=QColor()) | |
| Constructor for QgsDevToolsModelValueNode, with the specified key (usually translated) and value. | |
| QList< QAction * > | actions (QObject *parent) final |
| Returns a list of actions relating to the node. | |
| int | childCount () const final |
| Returns the number of child nodes owned by this node. | |
| QVariant | data (int role=Qt::DisplayRole) const final |
| Returns the node's data for the specified model role. | |
| QString | key () const |
| Returns the node's key. | |
| QString | value () const |
| Returns the node's value. | |
| Public Member Functions inherited from QgsDevToolsModelNode | |
| virtual | ~QgsDevToolsModelNode () |
| QgsDevToolsModelGroup * | parent () |
| Returns the node's parent node. | |
| virtual QVariant | toVariant () const |
| Converts the node's contents to a variant. | |
Additional Inherited Members | |
| Protected Member Functions inherited from QgsDevToolsModelNode | |
| QgsDevToolsModelNode () | |
A "key: value" style node for a dev tools model.
Definition at line 161 of file qgsdevtoolsmodelnode.h.
| QgsDevToolsModelValueNode::QgsDevToolsModelValueNode | ( | const QString & | key, |
| const QString & | value, | ||
| const QColor & | color = QColor() ) |
Constructor for QgsDevToolsModelValueNode, with the specified key (usually translated) and value.
Definition at line 123 of file qgsdevtoolsmodelnode.cpp.
|
finalvirtual |
Returns a list of actions relating to the node.
The actions should be parented to parent.
Reimplemented from QgsDevToolsModelNode.
Definition at line 152 of file qgsdevtoolsmodelnode.cpp.
|
inlinefinalvirtual |
Returns the number of child nodes owned by this node.
Implements QgsDevToolsModelNode.
Definition at line 181 of file qgsdevtoolsmodelnode.h.
|
finalvirtual |
Returns the node's data for the specified model role.
Implements QgsDevToolsModelNode.
Definition at line 130 of file qgsdevtoolsmodelnode.cpp.
|
inline |
Returns the node's key.
Definition at line 173 of file qgsdevtoolsmodelnode.h.
|
inline |
Returns the node's value.
Definition at line 178 of file qgsdevtoolsmodelnode.h.