#include <pqDataInformationModel.h>
Inherits QAbstractTableModel.
|
| pqDataInformationModel (QObject *_parent=NULL) |
|
virtual | ~pqDataInformationModel () |
|
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| QAbstractTableModel API. More...
|
|
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QAbstractTableModel API. More...
|
|
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| QAbstractTableModel API. More...
|
|
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| QAbstractTableModel API. More...
|
|
QModelIndex | getIndexFor (pqOutputPort *item) const |
| Given a pqOutputPort, get the index for it, if present in this model, otherwise returns invalid index. More...
|
|
pqOutputPort * | getItemFor (const QModelIndex &index) const |
| Given a valid index, returns the pqOutputPort item corresponding to it. More...
|
|
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| Method needed for copy/past cell editor. More...
|
|
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
|
Definition at line 43 of file pqDataInformationModel.h.
◆ pqDataInformationModel()
pqDataInformationModel::pqDataInformationModel |
( |
QObject * |
_parent = NULL | ) |
|
◆ ~pqDataInformationModel()
virtual pqDataInformationModel::~pqDataInformationModel |
( |
| ) |
|
|
virtual |
◆ rowCount()
virtual int pqDataInformationModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
QAbstractTableModel API.
Returns the number of rows under the given parent.
◆ columnCount()
virtual int pqDataInformationModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
QAbstractTableModel API.
Returns the number of columns for the given parent.
◆ data()
virtual QVariant pqDataInformationModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
QAbstractTableModel API.
Returns the data stored under the given role for the item referred to by the index.
◆ headerData()
virtual QVariant pqDataInformationModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
QAbstractTableModel API.
Returns the data for the given role and section in the header with the specified orientation.
◆ getIndexFor()
QModelIndex pqDataInformationModel::getIndexFor |
( |
pqOutputPort * |
item | ) |
const |
Given a pqOutputPort, get the index for it, if present in this model, otherwise returns invalid index.
◆ getItemFor()
pqOutputPort* pqDataInformationModel::getItemFor |
( |
const QModelIndex & |
index | ) |
const |
Given a valid index, returns the pqOutputPort item corresponding to it.
◆ flags()
virtual Qt::ItemFlags pqDataInformationModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
virtual |
Method needed for copy/past cell editor.
◆ setData()
virtual bool pqDataInformationModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
virtual |
◆ addSource
Called when a new source/filter is registered.
◆ removeSource
Called when a new source/filter is unregistred.
◆ setActiveView
void pqDataInformationModel::setActiveView |
( |
pqView * |
view | ) |
|
|
slot |
Called when the active view changes.
Need to correctly show the geometry size for the source.
The documentation for this class was generated from the following file: