Abstract class implementing a tree model with checkable items.
More...
#include <pqAbstractItemSelectionModel.h>
Inherits QAbstractItemModel.
|
| pqAbstractItemSelectionModel (QObject *parent_=NULL) |
|
virtual | ~pqAbstractItemSelectionModel () |
|
virtual void | populateModel (void *dataObject)=0 |
| Concrete classes should implement how the model is to be populated. More...
|
|
virtual void | initializeRootItem ()=0 |
| Initialize the root item which holds the header tags. More...
|
|
bool | isIndexValid (const QModelIndex &index_) const |
| Helper for a more comprehensive validation of indices. More...
|
|
|
int | rowCount (const QModelIndex &parent_=QModelIndex()) const |
|
int | columnCount (const QModelIndex &parent_=QModelIndex()) const |
|
QModelIndex | index (int row, int column, const QModelIndex &parent_=QModelIndex()) const |
|
QModelIndex | parent (const QModelIndex &index_) const |
|
QVariant | data (const QModelIndex &index_, int role=Qt::DisplayRole) const |
|
bool | setData (const QModelIndex &index_, const QVariant &value, int role) |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
|
Qt::ItemFlags | flags (const QModelIndex &index_) const |
|
Abstract class implementing a tree model with checkable items.
It uses QTreeWidgetItem as its item class. Reimplement the virtual methods to fill it with data.
Definition at line 41 of file pqAbstractItemSelectionModel.h.
§ pqAbstractItemSelectionModel()
pqAbstractItemSelectionModel::pqAbstractItemSelectionModel |
( |
QObject * |
parent_ = NULL | ) |
|
|
protected |
§ ~pqAbstractItemSelectionModel()
virtual pqAbstractItemSelectionModel::~pqAbstractItemSelectionModel |
( |
| ) |
|
|
protectedvirtual |
§ rowCount()
int pqAbstractItemSelectionModel::rowCount |
( |
const QModelIndex & |
parent_ = QModelIndex() | ) |
const |
|
protected |
QAbstractItemModel implementation
§ columnCount()
int pqAbstractItemSelectionModel::columnCount |
( |
const QModelIndex & |
parent_ = QModelIndex() | ) |
const |
|
protected |
QAbstractItemModel implementation
§ index()
QModelIndex pqAbstractItemSelectionModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent_ = QModelIndex() |
|
) |
| const |
|
protected |
QAbstractItemModel implementation
§ parent()
QModelIndex pqAbstractItemSelectionModel::parent |
( |
const QModelIndex & |
index_ | ) |
const |
|
protected |
QAbstractItemModel implementation
§ data()
QVariant pqAbstractItemSelectionModel::data |
( |
const QModelIndex & |
index_, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
protected |
QAbstractItemModel implementation
§ setData()
bool pqAbstractItemSelectionModel::setData |
( |
const QModelIndex & |
index_, |
|
|
const QVariant & |
value, |
|
|
int |
role |
|
) |
| |
|
protected |
QAbstractItemModel implementation
§ headerData()
QVariant pqAbstractItemSelectionModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
protected |
QAbstractItemModel implementation
§ flags()
Qt::ItemFlags pqAbstractItemSelectionModel::flags |
( |
const QModelIndex & |
index_ | ) |
const |
|
protected |
QAbstractItemModel implementation
§ populateModel()
virtual void pqAbstractItemSelectionModel::populateModel |
( |
void * |
dataObject | ) |
|
|
protectedpure virtual |
Concrete classes should implement how the model is to be populated.
§ initializeRootItem()
virtual void pqAbstractItemSelectionModel::initializeRootItem |
( |
| ) |
|
|
protectedpure virtual |
Initialize the root item which holds the header tags.
§ isIndexValid()
bool pqAbstractItemSelectionModel::isIndexValid |
( |
const QModelIndex & |
index_ | ) |
const |
|
protected |
Helper for a more comprehensive validation of indices.
§ RootItem
QTreeWidgetItem* pqAbstractItemSelectionModel::RootItem |
|
protected |
The documentation for this class was generated from the following file: