Relacs
0.9.8
|
#include <databrowser.h>
Public Slots | |
void | setDescription (const QModelIndex &index) |
void | setDescription (const QModelIndex &currrent, const QModelIndex &previous) |
Public Member Functions | |
DataOverviewModel (QObject *parent=0) | |
void | setDataIndex (DataIndex *data) |
void | setTreeView (QTreeView *view) |
void | setBrowser (DataBrowser *browser) |
QVariant | data (const QModelIndex &index, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &index) const |
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
bool | canFetchMore (const QModelIndex &parent) const |
void | fetchMore (const QModelIndex &parent) |
void | beginAddChild (DataIndex::DataItem *parent) |
void | endAddChild (DataIndex::DataItem *parent) |
void | endAddChild (void) |
void | beginPopChild (DataIndex::DataItem *parent) |
void | endPopChild (DataIndex::DataItem *parent) |
The model for viewing an overview of the data of an DataIndex.
DataOverviewModel | ( | QObject * | parent = 0 | ) |
void setDataIndex | ( | DataIndex * | data | ) |
References DataOverviewModel::data().
Referenced by DataIndex::DataIndex().
void setTreeView | ( | QTreeView * | view | ) |
References DataOverviewModel::setDescription().
Referenced by DataIndex::setOverviewView().
void setBrowser | ( | DataBrowser * | browser | ) |
Referenced by DataIndex::setOverviewView().
QVariant data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
References Str::dir(), Str::eraseFirst(), DataIndex::DataItem::level(), DataIndex::DataItem::name(), Str::name(), and Str::preventedSlash().
Referenced by DataOverviewModel::setDataIndex().
Qt::ItemFlags flags | ( | const QModelIndex & | index | ) | const |
QVariant headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
QModelIndex index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
References DataIndex::cells(), and DataIndex::DataItem::child().
QModelIndex parent | ( | const QModelIndex & | index | ) | const |
References DataIndex::cells(), DataIndex::DataItem::index(), and DataIndex::DataItem::parent().
Referenced by DataOverviewModel::beginAddChild(), and DataOverviewModel::beginPopChild().
bool hasChildren | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
References DataIndex::cells(), DataIndex::DataItem::empty(), and DataIndex::DataItem::level().
int rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
References DataIndex::DataItem::level(), DataIndex::DataItem::size(), and DataIndex::size().
int columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
bool canFetchMore | ( | const QModelIndex & | parent | ) | const |
References DataIndex::DataItem::level(), and DataIndex::DataItem::size().
void fetchMore | ( | const QModelIndex & | parent | ) |
References DataIndex::DataItem::loadCell().
void beginAddChild | ( | DataIndex::DataItem * | parent | ) |
References DataIndex::DataItem::index(), DataIndex::DataItem::parent(), DataOverviewModel::parent(), and DataIndex::DataItem::size().
Referenced by DataIndex::DataItem::addChild(), and DataIndex::DataItem::loadCell().
void endAddChild | ( | DataIndex::DataItem * | parent | ) |
References DataIndex::DataItem::child(), DataIndex::DataItem::empty(), DataIndex::DataItem::level(), and DataIndex::DataItem::size().
Referenced by DataIndex::DataItem::addChild(), and DataIndex::DataItem::loadCell().
void endAddChild | ( | void | ) |
void beginPopChild | ( | DataIndex::DataItem * | parent | ) |
References DataIndex::DataItem::index(), DataIndex::DataItem::parent(), DataOverviewModel::parent(), and DataIndex::DataItem::size().
Referenced by DataIndex::DataItem::pop().
void endPopChild | ( | DataIndex::DataItem * | parent | ) |
References DataIndex::DataItem::child(), and DataIndex::DataItem::size().
Referenced by DataIndex::DataItem::pop().
|
slot |
References DataIndex::DataItem::data(), DataIndex::descriptionModel(), and DataDescriptionModel::setOptions().
Referenced by DataOverviewModel::setDescription(), and DataOverviewModel::setTreeView().
|
slot |
References DataOverviewModel::setDescription().