Abstract class implementing a tree model with checkable items.
More...
#include <pqAbstractItemSelectionModel.h>
Inherits QAbstractItemModel.
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 17 of file pqAbstractItemSelectionModel.h.
◆ pqAbstractItemSelectionModel()
pqAbstractItemSelectionModel::pqAbstractItemSelectionModel |
( |
QObject * |
parent_ = nullptr | ) |
|
|
protected |
◆ ~pqAbstractItemSelectionModel()
pqAbstractItemSelectionModel::~pqAbstractItemSelectionModel |
( |
| ) |
|
|
overrideprotected |
◆ rowCount()
int pqAbstractItemSelectionModel::rowCount |
( |
const QModelIndex & |
parent_ = QModelIndex() | ) |
const |
|
overrideprotected |
QAbstractItemModel implementation.
◆ columnCount()
int pqAbstractItemSelectionModel::columnCount |
( |
const QModelIndex & |
parent_ = QModelIndex() | ) |
const |
|
overrideprotected |
QAbstractItemModel implementation.
◆ index()
QModelIndex pqAbstractItemSelectionModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent_ = QModelIndex() |
|
) |
| const |
|
overrideprotected |
QAbstractItemModel implementation.
◆ parent()
QModelIndex pqAbstractItemSelectionModel::parent |
( |
const QModelIndex & |
index_ | ) |
const |
|
overrideprotected |
QAbstractItemModel implementation.
◆ data()
QVariant pqAbstractItemSelectionModel::data |
( |
const QModelIndex & |
index_, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
overrideprotected |
QAbstractItemModel implementation.
◆ setData()
bool pqAbstractItemSelectionModel::setData |
( |
const QModelIndex & |
index_, |
|
|
const QVariant & |
value, |
|
|
int |
role |
|
) |
| |
|
overrideprotected |
QAbstractItemModel implementation.
◆ headerData()
QVariant pqAbstractItemSelectionModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
overrideprotected |
QAbstractItemModel implementation.
◆ flags()
Qt::ItemFlags pqAbstractItemSelectionModel::flags |
( |
const QModelIndex & |
index_ | ) |
const |
|
overrideprotected |
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: