casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Signals | Public Member Functions | Protected Member Functions | Private Attributes
casa::QtComboCheckBox Class Reference

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

#include <QtComboCheckBox.qo.h>

List of all members.

Signals

void stateChanged ()
 
     

Public Member Functions

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

Protected Member Functions

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

Private Attributes

QString itsDisplayText_
 Display text.

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 67 of file QtComboCheckBox.qo.h.


Constructor & Destructor Documentation

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

Constructor which takes optional parent.

Destructor.


Member Function Documentation

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

Overrides QObject::eventFilter().

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)

     

This signal is emitted when the user has finished changing the checkboxes.

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

Member Data Documentation

Display text.

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


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