casa
$Rev:20696$
|
Subclass of QComboBox that uses the item delegate above. More...
#include <QtComboCheckBox.qo.h>
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. |
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.
casa::QtComboCheckBox::QtComboCheckBox | ( | QWidget * | parent = NULL | ) |
Constructor which takes optional parent.
Destructor.
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 | ||
) |
QString casa::QtComboCheckBox::itsDisplayText_ [private] |
Display text.
Definition at line 103 of file QtComboCheckBox.qo.h.