itom  3.0.0
CheckableComboBox Class Reference

#include <checkableComboBox.h>

Inheritance diagram for CheckableComboBox:

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.
 
CheckableModelHelpercheckableModelHelper () 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< CheckableComboBoxPrivated_ptr
 

Properties

QVector< int > checkedIndices
 

Private Member Functions

 Q_DECLARE_PRIVATE (CheckableComboBox)
 
 Q_DISABLE_COPY (CheckableComboBox)
 

Detailed Description

Description CheckableComboBox is a QComboBox that allow its items to be checkable

Member Function Documentation

CheckableModelHelper * CheckableComboBox::checkableModelHelper ( ) const

Returns a pointer to the checkable model helper to give a direct access to the check manager.


The documentation for this class was generated from the following files: