Delegate for QTableView to draw a checkbox as an left-right (unchecked) and top-bottom (checked) arrow.
More...
#include <pqCheckBoxDelegate.h>
Inherits QStyledItemDelegate.
Delegate for QTableView to draw a checkbox as an left-right (unchecked) and top-bottom (checked) arrow.
The checkbox has an extra state for unchecked disabled. Based on a Stack overflow answer: http://stackoverflow.com/questions/3363190/qt-qtableview-how-to-have-a-checkbox-only-column
Definition at line 15 of file pqCheckBoxDelegate.h.
◆ CheckBoxValues
◆ pqCheckBoxDelegate()
pqCheckBoxDelegate::pqCheckBoxDelegate |
( |
QObject * |
parent | ) |
|
◆ ~pqCheckBoxDelegate()
pqCheckBoxDelegate::~pqCheckBoxDelegate |
( |
| ) |
|
|
override |
◆ paint()
void pqCheckBoxDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
◆ editorEvent()
bool pqCheckBoxDelegate::editorEvent |
( |
QEvent * |
event, |
|
|
QAbstractItemModel * |
model, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
override |
The documentation for this class was generated from the following file: