27 #ifndef BROWSERITEMDELEGATE_H
28 #define BROWSERITEMDELEGATE_H
30 #include <QStyledItemDelegate>
41 QWidget *
createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
42 const QModelIndex &index)
const;
47 void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
48 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const;
51 const QModelIndex &index)
const;
52 QSize
sizeHint(
const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
62 #endif // BROWSERITEMDELEGATE_H
BrowserItemDelegate(TreeSortFilterProxyModel *proxyModel, QObject *parent=nullptr)
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setEditorData(QWidget *editor, const QModelIndex &index) const
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
bool eventFilter(QObject *object, QEvent *event)
This filter is required to make combo boxes work.
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const