CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
ctkCheckableComboBox Class Reference

#include <Libs/Widgets/ctkCheckableComboBox.h>

Inheritance diagram for ctkCheckableComboBox:
Inheritance graph
[legend]
Collaboration diagram for ctkCheckableComboBox:
Collaboration graph
[legend]

Signals

void checkedIndexesChanged ()
 

Public Member Functions

bool allChecked () const
 Returns true if all the indexes are checked, false otherwise. More...
 
QAbstractItemModel * checkableModel () const
 Use setCheckableModel instead of setModel() More...
 
ctkCheckableModelHelpercheckableModelHelper () const
 
QModelIndexList checkedIndexes () const
 Returns an up-to-date list of all the checked indexes. More...
 
Qt::CheckState checkState (const QModelIndex &index) const
 Utility function to return the check state of a model index. More...
 
 ctkCheckableComboBox (QWidget *parent=0)
 
bool eventFilter (QObject *o, QEvent *e)
 Reimplemented for internal reasons. More...
 
bool noneChecked () const
 Returns true if none of the indexes is checked, false otherwise. More...
 
void setCheckableModel (QAbstractItemModel *model)
 
void setCheckState (const QModelIndex &index, Qt::CheckState check)
 Utility function to conveniently check the state of an index. More...
 
virtual ~ctkCheckableComboBox ()
 

Protected Slots

void onDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
 Reimplemented for internal reasons. More...
 

Protected Attributes

QScopedPointer< ctkCheckableComboBoxPrivate > d_ptr
 

Detailed Description

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

Definition at line 36 of file ctkCheckableComboBox.h.

Constructor & Destructor Documentation

◆ ctkCheckableComboBox()

ctkCheckableComboBox::ctkCheckableComboBox ( QWidget *  parent = 0)

◆ ~ctkCheckableComboBox()

virtual ctkCheckableComboBox::~ctkCheckableComboBox ( )
virtual

Member Function Documentation

◆ allChecked()

bool ctkCheckableComboBox::allChecked ( ) const

Returns true if all the indexes are checked, false otherwise.

◆ checkableModel()

QAbstractItemModel* ctkCheckableComboBox::checkableModel ( ) const

Use setCheckableModel instead of setModel()

◆ checkableModelHelper()

ctkCheckableModelHelper* ctkCheckableComboBox::checkableModelHelper ( ) const

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

◆ checkedIndexes()

QModelIndexList ctkCheckableComboBox::checkedIndexes ( ) const

Returns an up-to-date list of all the checked indexes.

◆ checkedIndexesChanged

void ctkCheckableComboBox::checkedIndexesChanged ( )
signal

◆ checkState()

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()

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()

void ctkCheckableComboBox::setCheckableModel ( QAbstractItemModel *  model)

◆ setCheckState()

void ctkCheckableComboBox::setCheckState ( const QModelIndex &  index,
Qt::CheckState  check 
)

Utility function to conveniently check the state of an index.

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkCheckableComboBoxPrivate> ctkCheckableComboBox::d_ptr
protected

Definition at line 78 of file ctkCheckableComboBox.h.


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