#include <pqDataInformationModel.h>
Inherits QAbstractTableModel.
Definition at line 43 of file pqDataInformationModel.h.
◆ pqDataInformationModel()
pqDataInformationModel::pqDataInformationModel |
( |
QObject * |
_parent = NULL | ) |
|
◆ ~pqDataInformationModel()
pqDataInformationModel::~pqDataInformationModel |
( |
| ) |
|
|
override |
◆ rowCount()
int pqDataInformationModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
QAbstractTableModel API.
Returns the number of rows under the given parent.
◆ columnCount()
int pqDataInformationModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
QAbstractTableModel API.
Returns the number of columns for the given parent.
◆ data()
QVariant pqDataInformationModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
QAbstractTableModel API.
Returns the data stored under the given role for the item referred to by the index.
◆ headerData()
QVariant pqDataInformationModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
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()
Given a valid index, returns the pqOutputPort item corresponding to it.
◆ flags()
Qt::ItemFlags pqDataInformationModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
Method needed for copy/past cell editor.
◆ setData()
bool pqDataInformationModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ addSource
Called when a new source/filter is registered.
◆ removeSource
Called when a new source/filter is unregistered.
◆ 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: