30 #ifndef NOTIFYITEMDELEGATE_H
31 #define NOTIFYITEMDELEGATE_H
33 #include <QItemDelegate>
42 QWidget *
createEditor(QWidget *parent,
const QStyleOptionViewItem &,
43 const QModelIndex &index)
const;
44 void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
45 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const;
46 QSize
sizeHint(
const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
49 void selectRow(
const QString &text);
50 void commitAndCloseEditor();
56 #endif // NOTIFYITEMDELEGATE_H
NotifyItemDelegate(QObject *parent=nullptr)
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &index) const
void setEditorData(QWidget *editor, const QModelIndex &index) const
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const