RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
QObjectModel Class Reference

#include <qobjectmodel.h>

Inheritance diagram for QObjectModel:

Public Types

enum  Column { ColName, ColType }
 

Public Member Functions

 QObjectModel (QObject *parent=0)
 
QList< QObject * > * children () const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QVariant headerData (int section, Qt::Orientation o, int role) const
 
void addChild (QObject *child)
 
void removeChild (QString child_name)
 
void clear ()
 
 ~QObjectModel ()
 

Protected Attributes

QList< QObject * > * m_children
 

Detailed Description

Definition at line 35 of file qobjectmodel.h.

Member Enumeration Documentation

Enumerator
ColName 
ColType 

Definition at line 39 of file qobjectmodel.h.

Constructor & Destructor Documentation

QObjectModel::QObjectModel ( QObject *  parent = 0)

Definition at line 34 of file qobjectmodel.cpp.

QObjectModel::~QObjectModel ( )

Definition at line 126 of file qobjectmodel.cpp.

Member Function Documentation

void QObjectModel::addChild ( QObject *  child)

Definition at line 101 of file qobjectmodel.cpp.

QList< QObject * > * QObjectModel::children ( ) const

Definition at line 40 of file qobjectmodel.cpp.

void QObjectModel::clear ( )

Definition at line 120 of file qobjectmodel.cpp.

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

Definition at line 52 of file qobjectmodel.cpp.

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

Definition at line 58 of file qobjectmodel.cpp.

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

Definition at line 91 of file qobjectmodel.cpp.

QVariant QObjectModel::headerData ( int  section,
Qt::Orientation  o,
int  role 
) const

Definition at line 77 of file qobjectmodel.cpp.

void QObjectModel::removeChild ( QString  child_name)

Definition at line 108 of file qobjectmodel.cpp.

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

Definition at line 46 of file qobjectmodel.cpp.

Member Data Documentation

QList<QObject*>* QObjectModel::m_children
protected

Definition at line 58 of file qobjectmodel.h.


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