Qt 4.8
Public Functions | Public Variables | Properties | List of all members
FlatNodeData Class Reference

#include <qdeclarativelistmodel_p_p.h>

Public Functions

void addData (FlatNodeObjectData *data)
 
 FlatNodeData (int i)
 
void removeData (FlatNodeObjectData *data)
 
 ~FlatNodeData ()
 

Public Variables

int index
 

Properties

QSet< FlatNodeObjectData * > objects
 

Detailed Description

Definition at line 142 of file qdeclarativelistmodel_p_p.h.

Constructors and Destructors

◆ FlatNodeData()

FlatNodeData::FlatNodeData ( int  i)
inline

Definition at line 145 of file qdeclarativelistmodel_p_p.h.

146  : index(i) {}

◆ ~FlatNodeData()

FlatNodeData::~FlatNodeData ( )

Definition at line 1145 of file qdeclarativelistmodel.cpp.

1146 {
1147  for (QSet<FlatNodeObjectData *>::Iterator iter = objects.begin(); iter != objects.end(); ++iter) {
1148  FlatNodeObjectData *data = *iter;
1149  data->nodeData = 0;
1150  }
1151 }
QSet< FlatNodeObjectData * > objects
iterator begin()
Definition: qset.h:166
iterator end()
Definition: qset.h:169
static const char * data(const QByteArray &arr)

Functions

◆ addData()

void FlatNodeData::addData ( FlatNodeObjectData data)

Definition at line 1153 of file qdeclarativelistmodel.cpp.

1154 {
1155  objects.insert(data);
1156 }
QSet< FlatNodeObjectData * > objects
const_iterator insert(const T &value)
Definition: qset.h:179

◆ removeData()

void FlatNodeData::removeData ( FlatNodeObjectData data)

Definition at line 1158 of file qdeclarativelistmodel.cpp.

1159 {
1160  objects.remove(data);
1161 }
bool remove(const T &value)
Definition: qset.h:89
QSet< FlatNodeObjectData * > objects

Properties

◆ index

int FlatNodeData::index

◆ objects

QSet<FlatNodeObjectData*> FlatNodeData::objects
private

Definition at line 156 of file qdeclarativelistmodel_p_p.h.


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