The QCheckStateProxyModel class adds check boxes to a model.
More...
#include <qcheckstateproxymodel.h>
The QCheckStateProxyModel class adds check boxes to a model.
QCheckStateProxyModel::QCheckStateProxyModel |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
Constructs a QCheckStateProxyModel with the given parent
.
QCheckStateProxyModel::~QCheckStateProxyModel |
( |
| ) |
|
Destroys the QCheckStateProxyModel object.
int QCheckStateProxyModel::checkableColumnsCount |
( |
| ) |
const |
Returns the number of columns checkable.
QModelIndexList QCheckStateProxyModel::checkedIndexes |
( |
| ) |
const |
Returns a list with the checked indexes.
QVariant QCheckStateProxyModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
Qt::ItemFlags QCheckStateProxyModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
virtual |
bool QCheckStateProxyModel::isChecked |
( |
const QModelIndex & |
index | ) |
const |
Returns true if the given model item index
is checked.
bool QCheckStateProxyModel::isColumnCheckable |
( |
int |
column | ) |
const |
Returns true if the column column
is checkable. Otherwise false.
- See also
- setColumnCheckable()
void QCheckStateProxyModel::setAllChecked |
( |
bool |
checked = true | ) |
|
|
slot |
If checked
is true, all checkable items are checked.
void QCheckStateProxyModel::setChecked |
( |
const QModelIndex & |
index, |
|
|
bool |
checked |
|
) |
| |
|
slot |
If checked
is true, the item specified by the given index
is checked.
void QCheckStateProxyModel::setCheckedIndexes |
( |
const QModelIndexList & |
indexes | ) |
|
Checks the item specified by the list of indexes
.
void QCheckStateProxyModel::setCheckedValues |
( |
int |
column, |
|
|
const QVariantList & |
values |
|
) |
| |
Checks all items in the specifed column
matching the list of values
.
void QCheckStateProxyModel::setColumnCheckable |
( |
int |
column, |
|
|
bool |
checkable = true |
|
) |
| |
If checkable
is true the items in the specified column
are checkable.
bool QCheckStateProxyModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role |
|
) |
| |
|
virtual |
void QCheckStateProxyModel::setSourceModel |
( |
QAbstractItemModel * |
sourceModel | ) |
|
|
virtual |
The documentation for this class was generated from the following files: