#include <DataSourceTreeModel.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 |
| DataSourceTreeModel (const std::vector< te::da::DataSourceInfoPtr > &datasources, QWidget *parent) | |
| This lists all data sources. More... | |
| DataSourceTreeModel (const te::da::DataSourceInfoPtr &ds, QObject *parent=0) | |
| This lists all datasets from the data source. More... | |
| void | fetchMore (const QModelIndex &parent) |
| Qt::ItemFlags | flags (const QModelIndex &index) 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) |
| ~DataSourceTreeModel () | |
Private Attributes | |
| bool | m_checkable |
| std::vector < AbstractDataSourceTreeItem * > | m_items |
Definition at line 50 of file DataSourceTreeModel.h.
| te::qt::widgets::DataSourceTreeModel::DataSourceTreeModel | ( | const std::vector< te::da::DataSourceInfoPtr > & | datasources, |
| QWidget * | parent | ||
| ) |
This lists all data sources.
Definition at line 37 of file DataSourceTreeModel.cpp.
References m_items.
| te::qt::widgets::DataSourceTreeModel::DataSourceTreeModel | ( | const te::da::DataSourceInfoPtr & | ds, |
| QObject * | parent = 0 |
||
| ) |
This lists all datasets from the data source.
Definition at line 48 of file DataSourceTreeModel.cpp.
References m_items.
| te::qt::widgets::DataSourceTreeModel::~DataSourceTreeModel | ( | ) |
Definition at line 55 of file DataSourceTreeModel.cpp.
References te::common::FreeContents().
| bool te::qt::widgets::DataSourceTreeModel::canFetchMore | ( | const QModelIndex & | parent | ) | const |
Definition at line 60 of file DataSourceTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::canFetchMore().
| int te::qt::widgets::DataSourceTreeModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 73 of file DataSourceTreeModel.cpp.
| QVariant te::qt::widgets::DataSourceTreeModel::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole |
||
| ) | const |
Definition at line 78 of file DataSourceTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::data().
| void te::qt::widgets::DataSourceTreeModel::fetchMore | ( | const QModelIndex & | parent | ) |
Definition at line 111 of file DataSourceTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::fetchMore().
| Qt::ItemFlags te::qt::widgets::DataSourceTreeModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 139 of file DataSourceTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::flags().
| bool te::qt::widgets::DataSourceTreeModel::hasChildren | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 169 of file DataSourceTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::hasChildren().
| QModelIndex te::qt::widgets::DataSourceTreeModel::index | ( | int | row, |
| int | column, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | const |
Definition at line 199 of file DataSourceTreeModel.cpp.
| bool te::qt::widgets::DataSourceTreeModel::isCheckable | ( | ) | const |
Definition at line 326 of file DataSourceTreeModel.cpp.
Referenced by te::qt::widgets::DataSourceTreeView::itemClicked().
| QModelIndex te::qt::widgets::DataSourceTreeModel::parent | ( | const QModelIndex & | index | ) | const |
Definition at line 228 of file DataSourceTreeModel.cpp.
| int te::qt::widgets::DataSourceTreeModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 271 of file DataSourceTreeModel.cpp.
| void te::qt::widgets::DataSourceTreeModel::setCheckable | ( | const bool | checkable | ) |
Definition at line 321 of file DataSourceTreeModel.cpp.
| bool te::qt::widgets::DataSourceTreeModel::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role = Qt::EditRole |
||
| ) |
Definition at line 284 of file DataSourceTreeModel.cpp.
References te::qt::widgets::AbstractDataSourceTreeItem::setData().
|
private |
Definition at line 95 of file DataSourceTreeModel.h.
|
private |
Definition at line 94 of file DataSourceTreeModel.h.
Referenced by DataSourceTreeModel().