59 QStandardItemModel *it =
dynamic_cast<QStandardItemModel*
>(model);
61 return QStyledItemDelegate::editorEvent(evt, model, option, index);
63 const QStandardItem *
item = it->itemFromIndex(index);
65 return QStyledItemDelegate::editorEvent(evt, model, option, index);
67 const Qt::CheckState before = item->checkState();
69 const bool rc = QStyledItemDelegate::editorEvent(evt, model, option, index);
71 const Qt::CheckState after = item->checkState();
74 QApplication::sendEvent(it->parent(),
new CheckBoxEvent(*item));
An event posted by the CheckBoxDelegate if the CheckBox is used.