Gluon::Creator::QObjectTreeModel Class Reference

#include <qobjecttreemodel.h>

List of all members.

Public Member Functions

 QObjectTreeModel (QObject *root, QObject *parent=0)
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
virtual QModelIndex parent (const QModelIndex &child) const
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const

Protected Member Functions

int rowIndex (QObject *object) const

Protected Attributes

QObjectm_root

Detailed Description

Definition at line 32 of file qobjecttreemodel.h.


Constructor & Destructor Documentation

QObjectTreeModel::QObjectTreeModel ( QObject root,
QObject parent = 0 
) [explicit]

Definition at line 27 of file qobjecttreemodel.cpp.


Member Function Documentation

int QObjectTreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()  )  const [virtual]

Definition at line 60 of file qobjecttreemodel.cpp.

QVariant QObjectTreeModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const [virtual]

Definition at line 33 of file qobjecttreemodel.cpp.

QVariant QObjectTreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const [virtual]

Definition at line 112 of file qobjecttreemodel.cpp.

QModelIndex QObjectTreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const [virtual]

Definition at line 93 of file qobjecttreemodel.cpp.

QModelIndex QObjectTreeModel::parent ( const QModelIndex &  child  )  const [virtual]

Definition at line 79 of file qobjecttreemodel.cpp.

int QObjectTreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const [virtual]

Definition at line 65 of file qobjecttreemodel.cpp.

int QObjectTreeModel::rowIndex ( QObject object  )  const [protected]

Definition at line 132 of file qobjecttreemodel.cpp.


Member Data Documentation

Definition at line 44 of file qobjecttreemodel.h.


The documentation for this class was generated from the following files:
Generated on Mon Dec 27 13:13:42 2010 for Gluon by  doxygen 1.6.3