itom 2.2.0
|
#include <checkableComboBox.h>
Public Slots | |
void | setIndexState (int index, bool state) |
Signals | |
void | checkedIndexesChanged () |
Public Member Functions | |
CheckableComboBox (QWidget *parent=0) | |
QAbstractItemModel * | checkableModel () const |
Use setCheckableModel instead of setModel() | |
void | setCheckableModel (QAbstractItemModel *model) |
QModelIndexList | checkedIndexes () const |
Returns an up-to-date list of all the checked indexes. | |
bool | allChecked () const |
Returns true if all the indexes are checked, false otherwise. | |
bool | noneChecked () const |
Returns true if none of the indexes is checked, false otherwise. | |
void | setCheckState (const QModelIndex &index, Qt::CheckState check) |
Utility function to conveniently check the state of an index. | |
Qt::CheckState | checkState (const QModelIndex &index) const |
Utility function to return the check state of a model index. | |
CheckableModelHelper * | checkableModelHelper () const |
bool | eventFilter (QObject *o, QEvent *e) |
Reimplemented for internal reasons. | |
void | setCheckedIndices (const QVector< int > &indices) |
QVector< int > | getCheckedIndices () const |
Protected Slots | |
void | onDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *) |
Reimplemented for internal reasons. | |
Protected Attributes | |
QScopedPointer < CheckableComboBoxPrivate > | d_ptr |
Properties | |
QVector< int > | checkedIndices |
Private Member Functions | |
Q_DECLARE_PRIVATE (CheckableComboBox) | |
Q_DISABLE_COPY (CheckableComboBox) |
Description CheckableComboBox is a QComboBox that allow its items to be checkable
CheckableModelHelper * CheckableComboBox::checkableModelHelper | ( | ) | const |
Returns a pointer to the checkable model helper to give a direct access to the check manager.