te::qt::widgets::DataSourceTreeModel Class Reference

#include <DataSourceTreeModel.h>

Inheritance diagram for te::qt::widgets::DataSourceTreeModel:

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
 

Detailed Description

Definition at line 50 of file DataSourceTreeModel.h.

Constructor & Destructor Documentation

te::qt::widgets::DataSourceTreeModel::DataSourceTreeModel ( const std::vector< te::da::DataSourceInfoPtr > &  datasources,
QWidget *  parent 
)

This lists all data sources.

te::qt::widgets::DataSourceTreeModel::DataSourceTreeModel ( const te::da::DataSourceInfoPtr ds,
QObject *  parent = 0 
)

This lists all datasets from the data source.

te::qt::widgets::DataSourceTreeModel::~DataSourceTreeModel ( )

Member Function Documentation

bool te::qt::widgets::DataSourceTreeModel::canFetchMore ( const QModelIndex &  parent) const
int te::qt::widgets::DataSourceTreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
QVariant te::qt::widgets::DataSourceTreeModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
void te::qt::widgets::DataSourceTreeModel::fetchMore ( const QModelIndex &  parent)
Qt::ItemFlags te::qt::widgets::DataSourceTreeModel::flags ( const QModelIndex &  index) const
bool te::qt::widgets::DataSourceTreeModel::hasChildren ( const QModelIndex &  parent = QModelIndex()) const
QModelIndex te::qt::widgets::DataSourceTreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
bool te::qt::widgets::DataSourceTreeModel::isCheckable ( ) const
QModelIndex te::qt::widgets::DataSourceTreeModel::parent ( const QModelIndex &  index) const
int te::qt::widgets::DataSourceTreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
void te::qt::widgets::DataSourceTreeModel::setCheckable ( const bool  checkable)
bool te::qt::widgets::DataSourceTreeModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Member Data Documentation

bool te::qt::widgets::DataSourceTreeModel::m_checkable
private

Definition at line 95 of file DataSourceTreeModel.h.

std::vector<AbstractDataSourceTreeItem*> te::qt::widgets::DataSourceTreeModel::m_items
private

Definition at line 94 of file DataSourceTreeModel.h.


The documentation for this class was generated from the following file: