ExerciseItem Class Reference

Represents one single item of the TreeView. Also stores the data which is necessary for the tree. More...

#include <exercisemodel.h>

Collaboration diagram for ExerciseItem:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ExerciseItem (const QVariantList &data, ExerciseItem *parent=0)
int childCount () const
int columnCount () const
ExerciseItemchild (int row)
QVariant data (int column) const
bool setData (QVariant value, int column) const
int row () const
void addChild (ExerciseItem *item)
void removeChild (ExerciseItem *item)
ExerciseItemparent ()
Qt::CheckState isChecked ()
void setCheckState (Qt::CheckState value)
QVariantList itemInfo () const
QList< ExerciseItem * > getChildItems () const
ExerciseItemgetParentItem () const
void setParent (ExerciseItem *parent)
uint maxExerciseID ()
void incrementExerciseIdByOne ()
int positionOfExerciseById (uint exerciseId)

Public Attributes

QList< ExerciseItem * > childItems


Detailed Description

Represents one single item of the TreeView. Also stores the data which is necessary for the tree.

Definition at line 103 of file exercisemodel.h.


Constructor & Destructor Documentation

ExerciseItem::ExerciseItem ( const QVariantList &  data,
ExerciseItem parent = 0 
)

Definition at line 569 of file exercisemodel.cpp.


Member Function Documentation

void ExerciseItem::addChild ( ExerciseItem item  ) 

Definition at line 698 of file exercisemodel.cpp.

Here is the caller graph for this function:

ExerciseItem * ExerciseItem::child ( int  row  ) 

Definition at line 663 of file exercisemodel.cpp.

Here is the caller graph for this function:

int ExerciseItem::childCount (  )  const

Definition at line 653 of file exercisemodel.cpp.

Here is the caller graph for this function:

int ExerciseItem::columnCount (  )  const

Definition at line 658 of file exercisemodel.cpp.

Here is the caller graph for this function:

QVariant ExerciseItem::data ( int  column  )  const

Definition at line 668 of file exercisemodel.cpp.

Here is the caller graph for this function:

QList<ExerciseItem*> ExerciseItem::getChildItems (  )  const [inline]

Definition at line 127 of file exercisemodel.h.

ExerciseItem* ExerciseItem::getParentItem (  )  const [inline]

Definition at line 128 of file exercisemodel.h.

void ExerciseItem::incrementExerciseIdByOne (  )  [inline]

Definition at line 134 of file exercisemodel.h.

Here is the caller graph for this function:

Qt::CheckState ExerciseItem::isChecked (  )  [inline]

Definition at line 117 of file exercisemodel.h.

Here is the caller graph for this function:

QVariantList ExerciseItem::itemInfo (  )  const [inline]

Definition at line 126 of file exercisemodel.h.

Here is the caller graph for this function:

uint ExerciseItem::maxExerciseID (  )  [inline]

Definition at line 133 of file exercisemodel.h.

Here is the caller graph for this function:

ExerciseItem * ExerciseItem::parent (  ) 

Definition at line 577 of file exercisemodel.cpp.

Here is the caller graph for this function:

int ExerciseItem::positionOfExerciseById ( uint  exerciseId  ) 

Definition at line 708 of file exercisemodel.cpp.

Here is the call graph for this function:

void ExerciseItem::removeChild ( ExerciseItem item  ) 

Definition at line 703 of file exercisemodel.cpp.

Here is the caller graph for this function:

int ExerciseItem::row (  )  const

Definition at line 689 of file exercisemodel.cpp.

Here is the caller graph for this function:

void ExerciseItem::setCheckState ( Qt::CheckState  value  )  [inline]

Definition at line 121 of file exercisemodel.h.

Here is the caller graph for this function:

bool ExerciseItem::setData ( QVariant  value,
int  column 
) const

Definition at line 673 of file exercisemodel.cpp.

void ExerciseItem::setParent ( ExerciseItem parent  )  [inline]

Definition at line 129 of file exercisemodel.h.


Member Data Documentation

Definition at line 131 of file exercisemodel.h.


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

Generated on Mon Jun 15 15:39:39 2009 for Allevo II Doublebookkeeping by  doxygen 1.5.9