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

Q_INVOKABLE bool allChecked () const
 Returns true if all the indexes are checked, false otherwise. More...
 
Q_INVOKABLE QAbstractItemModel * checkableModel () const
 Use setCheckableModel instead of setModel() More...
 
Q_INVOKABLE ctkCheckableModelHelpercheckableModelHelper () const
 
Q_INVOKABLE QModelIndexList checkedIndexes () const
 Returns an up-to-date list of all the checked indexes. More...
 
Q_INVOKABLE 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...
 
Q_INVOKABLE bool noneChecked () const
 Returns true if none of the indexes is checked, false otherwise. More...
 
Q_INVOKABLE void setCheckableModel (QAbstractItemModel *model)
 
Q_INVOKABLE 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()

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

Q_INVOKABLE ctkCheckableModelHelper* ctkCheckableComboBox::checkableModelHelper ( ) const

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.

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: