|
JsonTreeModel Implementation
v0.1.0
A Qt tree model for visualizing and manipulating a JSON document.
|
JsonTreeModelScalarNode is the most basic element of a JsonTreeModel's internal data. More...
#include <jsontreemodel.h>
Public Member Functions | |
| JsonTreeModelScalarNode (const QJsonValue &value, JsonTreeModelNode *parent) | |
| Constructs a node under the specified parent to represent the specified scalar value. More... | |
| QJsonValue | value () const override |
| Returns the scalar JSON value represented by this node. More... | |
| void | setValue (const QJsonValue &value) |
| Replaces the value represented by this node. More... | |
| Type | type () const override |
| Returns JsonTreeModelNode::Scalar. More... | |
Public Member Functions inherited from JsonTreeModelNode | |
| JsonTreeModelNode (JsonTreeModelNode *parent) | |
| Constructs a new node with the given parent. More... | |
| virtual | ~JsonTreeModelNode () |
| Frees the memory held by this node and its children. More... | |
| JsonTreeModelNode * | parent () const |
| Returns this node's parent. More... | |
| void | setParent (JsonTreeModelNode *parent) |
| Makes this node a child of parent. More... | |
Additional Inherited Members | |
Public Types inherited from JsonTreeModelNode | |
| enum | Type { Scalar, Object, Array } |
| This enum describes the type of data represented by a JsonTreeModelNode. More... | |
JsonTreeModelScalarNode is the most basic element of a JsonTreeModel's internal data.
It represents a single scalar JSON value (nulls, Booleans, numbers, and strings).
| JsonTreeModelScalarNode::JsonTreeModelScalarNode | ( | const QJsonValue & | value, |
| JsonTreeModelNode * | parent | ||
| ) |
Constructs a node under the specified parent to represent the specified scalar value.
|
inline |
Replaces the value represented by this node.
|
inlineoverridevirtual |
Returns JsonTreeModelNode::Scalar.
Implements JsonTreeModelNode.
|
inlineoverridevirtual |
Returns the scalar JSON value represented by this node.
Implements JsonTreeModelNode.