Avogadro::PrimitiveItemModel Class Reference

#include <primitiveitemmodel.h>

List of all members.

Public Types

enum  Role { PrimitiveRole = Qt::UserRole + 1, PrimitiveTypeRole }

Public Member Functions

 PrimitiveItemModel (Engine *engine, QObject *parent=0)
 PrimitiveItemModel (Molecule *molecule, QObject *parent=0)
 ~PrimitiveItemModel ()
QModelIndex parent (const QModelIndex &index) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
Qt::ItemFlags flags (const QModelIndex &index) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const


Member Enumeration Documentation

enum Avogadro::PrimitiveItemModel::Role

Enumerator:
PrimitiveRole 
PrimitiveTypeRole 


Constructor & Destructor Documentation

Avogadro::PrimitiveItemModel::PrimitiveItemModel ( Engine engine,
QObject *  parent = 0 
) [explicit]

Avogadro::PrimitiveItemModel::PrimitiveItemModel ( Molecule molecule,
QObject *  parent = 0 
) [explicit]

Avogadro::PrimitiveItemModel::~PrimitiveItemModel (  ) 


Member Function Documentation

QModelIndex Avogadro::PrimitiveItemModel::parent ( const QModelIndex &  index  )  const

int Avogadro::PrimitiveItemModel::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const

int Avogadro::PrimitiveItemModel::columnCount ( const QModelIndex &  parent = QModelIndex()  )  const

QVariant Avogadro::PrimitiveItemModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Qt::ItemFlags Avogadro::PrimitiveItemModel::flags ( const QModelIndex &  index  )  const

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


The documentation for this class was generated from the following files:
Generated on Thu Jan 8 20:54:44 2009 for Avogadro by  doxygen 1.5.4