1 #ifndef FACT_CheckBoxDelegate 2 #define FACT_CheckBoxDelegate 5 #include <QStandardItem> 15 : QEvent((QEvent::Type)QEvent::registerEventType()),
20 #include <QStyledItemDelegate> 29 void paint(QPainter *painter,
30 const QStyleOptionViewItem &option,
31 const QModelIndex &index)
const;
33 bool editorEvent(QEvent *evt, QAbstractItemModel *model,
34 const QStyleOptionViewItem &option,
35 const QModelIndex &index);
CheckBoxDelegate(QObject *p=0)
A delegate which displays an arrow if there are sub items and raises an event if the checkbox is chec...
CheckBoxEvent(const QStandardItem &i)
const QStandardItem & item
An event posted by the CheckBoxDelegate if the CheckBox is used.