Qt 4.8
Public Types | Public Functions | Public Variables | List of all members
QScriptDebuggerLocalsModelNode Struct Reference

Public Types

enum  PopulationState { NotPopulated, Populating, Populated }
 

Public Functions

QScriptDebuggerLocalsModelNodefindChild (const QString &name)
 
 QScriptDebuggerLocalsModelNode ()
 
 QScriptDebuggerLocalsModelNode (const QScriptDebuggerValueProperty &prop, QScriptDebuggerLocalsModelNode *par)
 
 ~QScriptDebuggerLocalsModelNode ()
 

Public Variables

bool changed
 
QList< QScriptDebuggerLocalsModelNode * > children
 
QScriptDebuggerLocalsModelNodeparent
 
PopulationState populationState
 
QScriptDebuggerValueProperty property
 
int snapshotId
 

Detailed Description

Definition at line 65 of file qscriptdebuggerlocalsmodel.cpp.

Enumerations

◆ PopulationState

Constructors and Destructors

◆ QScriptDebuggerLocalsModelNode() [1/2]

QScriptDebuggerLocalsModelNode::QScriptDebuggerLocalsModelNode ( )
inline

◆ QScriptDebuggerLocalsModelNode() [2/2]

QScriptDebuggerLocalsModelNode::QScriptDebuggerLocalsModelNode ( const QScriptDebuggerValueProperty prop,
QScriptDebuggerLocalsModelNode par 
)
inline

Definition at line 76 of file qscriptdebuggerlocalsmodel.cpp.

79  : property(prop), parent(par),
81  {
82  parent->children.append(this);
83  }
QScriptDebuggerValueProperty property
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
QScriptDebuggerLocalsModelNode * parent
QList< QScriptDebuggerLocalsModelNode * > children

◆ ~QScriptDebuggerLocalsModelNode()

QScriptDebuggerLocalsModelNode::~QScriptDebuggerLocalsModelNode ( )
inline

Definition at line 85 of file qscriptdebuggerlocalsmodel.cpp.

85 { qDeleteAll(children); }
QList< QScriptDebuggerLocalsModelNode * > children
Q_OUTOFLINE_TEMPLATE void qDeleteAll(ForwardIterator begin, ForwardIterator end)
Definition: qalgorithms.h:319

Functions

◆ findChild()

QScriptDebuggerLocalsModelNode* QScriptDebuggerLocalsModelNode::findChild ( const QString name)
inline

Definition at line 87 of file qscriptdebuggerlocalsmodel.cpp.

Referenced by QScriptDebuggerLocalsModelPrivate::addTopLevelObject().

88  {
89  for (int i = 0; i < children.size(); ++i) {
91  if (child->property.name() == name)
92  return child;
93  }
94  return 0;
95  }
QScriptDebuggerValueProperty property
QString name() const
Returns the name of this QScriptDebuggerValueProperty.
const char * name
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
QList< QScriptDebuggerLocalsModelNode * > children
int size() const
Returns the number of items in the list.
Definition: qlist.h:137

Properties

◆ changed

bool QScriptDebuggerLocalsModelNode::changed

◆ children

QList<QScriptDebuggerLocalsModelNode*> QScriptDebuggerLocalsModelNode::children

◆ parent

QScriptDebuggerLocalsModelNode* QScriptDebuggerLocalsModelNode::parent

◆ populationState

PopulationState QScriptDebuggerLocalsModelNode::populationState

◆ property

QScriptDebuggerValueProperty QScriptDebuggerLocalsModelNode::property

◆ snapshotId

int QScriptDebuggerLocalsModelNode::snapshotId

The documentation for this struct was generated from the following file: