![]() |
Scribus
Open source desktop publishing at your fingertips
|
[0] More...
#include <treemodel.h>
Public Member Functions | |
TreeModel (const QString &data, QObject *parent=0) | |
[0] | |
TreeModel (QObject *parent=0) | |
~TreeModel () | |
[0] More... | |
QVariant | data (const QModelIndex &index, int role) const |
[2] More... | |
Qt::ItemFlags | flags (const QModelIndex &index) const |
[3] More... | |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
[4] More... | |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
[5] More... | |
QModelIndex | parent (const QModelIndex &index) const |
[6] More... | |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
[7] More... | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
[1] More... | |
Protected Member Functions | |
void | setupModelData (const QStringList &lines, TreeItem *parent) |
[8] | |
Protected Attributes | |
TreeItem * | rootItem |
[0]
TreeModel::~TreeModel | ( | ) |
[0]
[1]
int TreeModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
[1]
[2]
QVariant TreeModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
[2]
[3]
Qt::ItemFlags TreeModel::flags | ( | const QModelIndex & | index | ) | const |
[3]
[4]
QVariant TreeModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
[4]
[5]
QModelIndex TreeModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
[5]
[6]
QModelIndex TreeModel::parent | ( | const QModelIndex & | index | ) | const |
[6]
[7]
int TreeModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
[7]
[8]