casa
$Rev:20696$
|
Subclass of QItemDelegate for use with QtComboCheckBox. More...
#include <QtComboCheckBox.qo.h>
Public Member Functions | |
QtComboCheckBoxDelegate (QObject *parent=NULL) | |
Constructor which takes optional parent. | |
~QtComboCheckBoxDelegate () | |
Destructor. | |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Overrides QItemDelegate::paint(). | |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Overrides QItemDelegate::createEditor(). | |
void | setEditorData (QWidget *editor, const QModelIndex &index) const |
Overrides QItemDelegate::setEditorData(). | |
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
Overrides QItemDelegate::setModelData(). |
Subclass of QItemDelegate for use with QtComboCheckBox.
Based on http://da-crystal.net/GCMS/blog/checkboxlist-in-qt/
Definition at line 40 of file QtComboCheckBox.qo.h.
casa::QtComboCheckBoxDelegate::QtComboCheckBoxDelegate | ( | QObject * | parent = NULL | ) |
Constructor which takes optional parent.
Destructor.
QWidget* casa::QtComboCheckBoxDelegate::createEditor | ( | QWidget * | parent, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
Overrides QItemDelegate::createEditor().
void casa::QtComboCheckBoxDelegate::paint | ( | QPainter * | painter, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
Overrides QItemDelegate::paint().
void casa::QtComboCheckBoxDelegate::setEditorData | ( | QWidget * | editor, |
const QModelIndex & | index | ||
) | const |
Overrides QItemDelegate::setEditorData().
void casa::QtComboCheckBoxDelegate::setModelData | ( | QWidget * | editor, |
QAbstractItemModel * | model, | ||
const QModelIndex & | index | ||
) | const |
Overrides QItemDelegate::setModelData().