TreeModel Class Reference

Tree Model. More...

#include <TreeModel.h>

List of all members.

Public Member Functions

 TreeModel (JQTreeBridge *treeBridge)
 Constructs new TreeModel object.
virtual ~TreeModel ()
 Destructs TreeModel object.
TreeNodegetRootNode ()
 Returns root node.
Qt::ItemFlags flags (const QModelIndex &index) const
QModelIndex parent (const QModelIndex &index) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QVariant data (const QModelIndex &index, int role) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const


Detailed Description

Tree Model.

Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
Version:
0.2.0

Constructor & Destructor Documentation

TreeModel::TreeModel ( JQTreeBridge treeBridge  ) 

Constructs new TreeModel object.

Parameters:
treeBridge the JQTreeBridge pointer


Member Function Documentation

TreeNode * TreeModel::getRootNode (  ) 

Returns root node.

Returns:
root node

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

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

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

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

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

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

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


Copyright © 2007 ETF and contributors. All Rights Reserved.