#include <DataSetTreeModel.h>
Public Member Functions | |
bool | canFetchMore (const QModelIndex &parent) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
DataSetTreeModel (const te::da::DataSourceInfoPtr &datasource, QWidget *parent=0) | |
void | fetchMore (const QModelIndex &parent) |
Qt::ItemFlags | flags (const QModelIndex &index) const |
bool | forceCatalogCache () const |
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
bool | isCheckable () const |
QModelIndex | parent (const QModelIndex &index) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
void | setCheckable (const bool checkable) |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
void | setForceCatalogCache (const bool force) |
~DataSetTreeModel () | |
Protected Member Functions | |
void | emitDataChangedForAncestors (const QModelIndex &index) |
It emits the dataChanged signal for the indexes that are ancestors of the given index. More... | |
void | emitDataChangedForDescendants (const QModelIndex &parent) |
It emits the dataChanged signal for the descendants indexes of the given index. More... | |
Private Attributes | |
bool | m_checkable |
If true the model allows for checkable items. More... | |
DataSetGroupItem * | m_datasets |
A container for the datasets of the input data source. More... | |
bool | m_forceCatalogCache |
If true every information looked in the data source catalog is also cahed in the data source catalog. More... | |
Definition at line 46 of file DataSetTreeModel.h.
te::qt::widgets::DataSetTreeModel::DataSetTreeModel | ( | const te::da::DataSourceInfoPtr & | datasource, |
QWidget * | parent = 0 |
||
) |
Definition at line 37 of file DataSetTreeModel.cpp.
References m_datasets.
te::qt::widgets::DataSetTreeModel::~DataSetTreeModel | ( | ) |
Definition at line 47 of file DataSetTreeModel.cpp.
bool te::qt::widgets::DataSetTreeModel::canFetchMore | ( | const QModelIndex & | parent | ) | const |
Definition at line 52 of file DataSetTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::canFetchMore().
int te::qt::widgets::DataSetTreeModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 65 of file DataSetTreeModel.cpp.
QVariant te::qt::widgets::DataSetTreeModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 70 of file DataSetTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::data().
|
protected |
It emits the dataChanged signal for the indexes that are ancestors of the given index.
index | The item index whose ancestors will have the dataChanged signal emitted. |
Definition at line 340 of file DataSetTreeModel.cpp.
|
protected |
It emits the dataChanged signal for the descendants indexes of the given index.
parent | The item index whose descendants will have the dataChanged signal emitted. |
Definition at line 322 of file DataSetTreeModel.cpp.
void te::qt::widgets::DataSetTreeModel::fetchMore | ( | const QModelIndex & | parent | ) |
Definition at line 103 of file DataSetTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::fetchMore().
Qt::ItemFlags te::qt::widgets::DataSetTreeModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 131 of file DataSetTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::flags().
bool te::qt::widgets::DataSetTreeModel::forceCatalogCache | ( | ) | const |
bool te::qt::widgets::DataSetTreeModel::hasChildren | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 161 of file DataSetTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::hasChildren().
QModelIndex te::qt::widgets::DataSetTreeModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
Definition at line 191 of file DataSetTreeModel.cpp.
bool te::qt::widgets::DataSetTreeModel::isCheckable | ( | ) | const |
Definition at line 317 of file DataSetTreeModel.cpp.
QModelIndex te::qt::widgets::DataSetTreeModel::parent | ( | const QModelIndex & | index | ) | const |
Definition at line 217 of file DataSetTreeModel.cpp.
int te::qt::widgets::DataSetTreeModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 256 of file DataSetTreeModel.cpp.
void te::qt::widgets::DataSetTreeModel::setCheckable | ( | const bool | checkable | ) |
Definition at line 312 of file DataSetTreeModel.cpp.
bool te::qt::widgets::DataSetTreeModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
Definition at line 269 of file DataSetTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::setData().
void te::qt::widgets::DataSetTreeModel::setForceCatalogCache | ( | const bool | force | ) |
|
private |
If true the model allows for checkable items.
Definition at line 104 of file DataSetTreeModel.h.
|
private |
A container for the datasets of the input data source.
Definition at line 103 of file DataSetTreeModel.h.
Referenced by DataSetTreeModel().
|
private |
If true every information looked in the data source catalog is also cahed in the data source catalog.
Definition at line 105 of file DataSetTreeModel.h.