A checkbox item delegate.
More...
#include <cCheckBoxDelegate.h>
|
| | cCheckBoxDelegate (QObject *parent=(QObject *) 0) |
| | The constructor. More...
|
| |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| | Reimplementation of paint. More...
|
| |
|
| bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
| | Reimplementation of editorEvent. More...
|
| |
A checkbox item delegate.
◆ cCheckBoxDelegate()
| cCheckBoxDelegate::cCheckBoxDelegate |
( |
QObject * |
parent = (QObject *)0 | ) |
|
The constructor.
- Parameters
-
| parent | pointer to a parent widget |
◆ editorEvent()
| bool cCheckBoxDelegate::editorEvent |
( |
QEvent * |
event, |
|
|
QAbstractItemModel * |
model, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
protected |
Reimplementation of editorEvent.
- Parameters
-
| event | QEvent |
| model | QAbstractItemModel |
| option | QStyleOptionViewItem |
| index | QModelIndex |
◆ paint()
| void cCheckBoxDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Reimplementation of paint.
- Parameters
-
| painter | QPainter |
| option | QStyleOptionViewItem |
| index | QModelIndex |
The documentation for this class was generated from the following files: