TreeModel Class Reference

#include <Qt_TreeModel.h>

Collaboration diagram for TreeModel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TreeModel (const char *id, QObject *parent=0)
 ~TreeModel ()
QVariant data (const QModelIndex &index, int role) const
Qt::ItemFlags flags (const QModelIndex &index) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QModelIndex parent (const QModelIndex &index) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
void setupModelData (multimap< string, map< int, string > >)
int getID (const QModelIndex &parent=QModelIndex()) const
bool removeRows (int position, int rows, const QModelIndex &parent)
QModelIndex indexOfLatestItem (int id, const QModelIndex &parent=QModelIndex())

Private Attributes

TreeItemrootItem

Constructor & Destructor Documentation

TreeModel::TreeModel ( const char *  id,
QObject *  parent = 0 
)

TreeModel::~TreeModel (  ) 


Member Function Documentation

QVariant TreeModel::data ( const QModelIndex &  index,
int  role 
) const

Qt::ItemFlags TreeModel::flags ( const QModelIndex &  index  )  const

QVariant TreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

QModelIndex TreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

QModelIndex TreeModel::parent ( const QModelIndex &  index  )  const

int TreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const

int TreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()  )  const

void TreeModel::setupModelData ( multimap< string, map< int, string > >   ) 

int TreeModel::getID ( const QModelIndex &  parent = QModelIndex()  )  const

bool TreeModel::removeRows ( int  position,
int  rows,
const QModelIndex &  parent 
)

QModelIndex TreeModel::indexOfLatestItem ( int  id,
const QModelIndex &  parent = QModelIndex() 
)


Member Data Documentation

TreeItem* TreeModel::rootItem [private]


The documentation for this class was generated from the following files:
Generated on Sun Aug 31 13:20:50 2008 for CrusDe by  doxygen 1.5.0