#include <Libs/Widgets/ctkCheckableComboBox.h>
|
void | onDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
|
|
QScopedPointer< ctkCheckableComboBoxPrivate > | d_ptr |
|
Description ctkCheckableComboBox is a QComboBox that allow its items to be checkable
Definition at line 36 of file ctkCheckableComboBox.h.
◆ ctkCheckableComboBox()
ctkCheckableComboBox::ctkCheckableComboBox |
( |
QWidget * |
parent = 0 | ) |
|
◆ ~ctkCheckableComboBox()
virtual ctkCheckableComboBox::~ctkCheckableComboBox |
( |
| ) |
|
|
virtual |
◆ allChecked()
Q_INVOKABLE bool ctkCheckableComboBox::allChecked |
( |
| ) |
const |
Returns true if all the indexes are checked, false otherwise.
◆ checkableModel()
Q_INVOKABLE QAbstractItemModel* ctkCheckableComboBox::checkableModel |
( |
| ) |
const |
Use setCheckableModel instead of setModel()
◆ checkableModelHelper()
Returns a pointer to the checkable model helper to give a direct access to the check manager.
◆ checkedIndexes()
Q_INVOKABLE QModelIndexList ctkCheckableComboBox::checkedIndexes |
( |
| ) |
const |
Returns an up-to-date list of all the checked indexes.
◆ checkedIndexesChanged
void ctkCheckableComboBox::checkedIndexesChanged |
( |
| ) |
|
|
signal |
◆ checkState()
Q_INVOKABLE Qt::CheckState ctkCheckableComboBox::checkState |
( |
const QModelIndex & |
index | ) |
const |
Utility function to return the check state of a model index.
◆ eventFilter()
bool ctkCheckableComboBox::eventFilter |
( |
QObject * |
o, |
|
|
QEvent * |
e |
|
) |
| |
Reimplemented for internal reasons.
◆ noneChecked()
Q_INVOKABLE bool ctkCheckableComboBox::noneChecked |
( |
| ) |
const |
Returns true if none of the indexes is checked, false otherwise.
◆ onDataChanged
void ctkCheckableComboBox::onDataChanged |
( |
const QModelIndex & |
topLeft, |
|
|
const QModelIndex & |
bottomRight |
|
) |
| |
|
protectedslot |
◆ paintEvent()
virtual void ctkCheckableComboBox::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
protectedvirtual |
Reimplemented for internal reasons.
◆ setCheckableModel()
Q_INVOKABLE void ctkCheckableComboBox::setCheckableModel |
( |
QAbstractItemModel * |
model | ) |
|
◆ setCheckState()
Q_INVOKABLE void ctkCheckableComboBox::setCheckState |
( |
const QModelIndex & |
index, |
|
|
Qt::CheckState |
check |
|
) |
| |
Utility function to conveniently check the state of an index.
◆ d_ptr
QScopedPointer<ctkCheckableComboBoxPrivate> ctkCheckableComboBox::d_ptr |
|
protected |
The documentation for this class was generated from the following file: