casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
casa::QtComboCheckBox Class Reference

Subclass of QComboBox that uses the item delegate above. More...

#include <QtComboCheckBox.qo.h>

Inheritance diagram for casa::QtComboCheckBox:

Signals

void stateChanged ()
 
This signal is emitted when the user has finished changing the

checkboxes. More...

 

Public Member Functions

 QtComboCheckBox (QWidget *parent=NULL)
 Constructor which takes optional parent. More...
 
 ~QtComboCheckBox ()
 Destructor. More...
 
bool eventFilter (QObject *object, QEvent *event)
 Overrides QObject::eventFilter(). More...
 
QString getDisplayText () const
 Gets/Sets the display text. More...
 
void setDisplayText (const QString &text)
 
bool indexIsToggled (int index) const
 Gets/Sets whether the checkbox at the given index is toggled. More...
 
void toggleIndex (int index, bool toggled)
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 Overrides QWidget::paintEvent(). More...
 

Private Attributes

QString itsDisplayText_
 Display text. More...
 

Detailed Description

Subclass of QComboBox that uses the item delegate above.

Based on http://da-crystal.net/GCMS/blog/checkboxlist-in-qt/

Definition at line 64 of file QtComboCheckBox.qo.h.

Constructor & Destructor Documentation

casa::QtComboCheckBox::QtComboCheckBox ( QWidget *  parent = NULL)

Constructor which takes optional parent.

casa::QtComboCheckBox::~QtComboCheckBox ( )

Destructor.

Member Function Documentation

bool casa::QtComboCheckBox::eventFilter ( QObject *  object,
QEvent *  event 
)

Overrides QObject::eventFilter().

QString casa::QtComboCheckBox::getDisplayText ( ) const

Gets/Sets the display text.

bool casa::QtComboCheckBox::indexIsToggled ( int  index) const

Gets/Sets whether the checkbox at the given index is toggled.

void casa::QtComboCheckBox::paintEvent ( QPaintEvent *  event)
protected

Overrides QWidget::paintEvent().

void casa::QtComboCheckBox::setDisplayText ( const QString &  text)
void casa::QtComboCheckBox::stateChanged ( )
signal

This signal is emitted when the user has finished changing the

checkboxes.

void casa::QtComboCheckBox::toggleIndex ( int  index,
bool  toggled 
)

Member Data Documentation

QString casa::QtComboCheckBox::itsDisplayText_
private

Display text.

Definition at line 100 of file QtComboCheckBox.qo.h.


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