QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
QgsDevToolsModelValueNode Class Reference

A "key: value" style node for a dev tools model. More...

#include <qgsdevtoolsmodelnode.h>

Inheritance diagram for QgsDevToolsModelValueNode:

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 ()
QgsDevToolsModelGroupparent ()
 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 ()

Detailed Description

A "key: value" style node for a dev tools model.

Since
QGIS 4.0

Definition at line 161 of file qgsdevtoolsmodelnode.h.

Constructor & Destructor Documentation

◆ QgsDevToolsModelValueNode()

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.

Member Function Documentation

◆ actions()

QList< QAction * > QgsDevToolsModelValueNode::actions ( QObject * parent)
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.

◆ childCount()

int QgsDevToolsModelValueNode::childCount ( ) const
inlinefinalvirtual

Returns the number of child nodes owned by this node.

Implements QgsDevToolsModelNode.

Definition at line 181 of file qgsdevtoolsmodelnode.h.

◆ data()

QVariant QgsDevToolsModelValueNode::data ( int role = Qt::DisplayRole) const
finalvirtual

Returns the node's data for the specified model role.

Implements QgsDevToolsModelNode.

Definition at line 130 of file qgsdevtoolsmodelnode.cpp.

◆ key()

QString QgsDevToolsModelValueNode::key ( ) const
inline

Returns the node's key.

Definition at line 173 of file qgsdevtoolsmodelnode.h.

◆ value()

QString QgsDevToolsModelValueNode::value ( ) const
inline

Returns the node's value.

Definition at line 178 of file qgsdevtoolsmodelnode.h.


The documentation for this class was generated from the following files: