#include <TreeModel.h>
Public Member Functions | |
TreeModel (JQTreeBridge *treeBridge) | |
Constructs new TreeModel object. | |
virtual | ~TreeModel () |
Destructs TreeModel object. | |
TreeNode * | getRootNode () |
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 |
TreeModel::TreeModel | ( | JQTreeBridge * | treeBridge | ) |
TreeNode * TreeModel::getRootNode | ( | ) |
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 |