6 #include <QStyledItemDelegate>
7 #include <ff7tkwidgets_export.h>
14 QWidget *createEditor (QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index = QModelIndex())
const override;
15 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
16 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const override;
17 void updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
18 void setMaximumQty(
int maxQty);
19 void setEditableItemCombo(
bool editable);
20 void setShowPlaceholderItems(
bool showPlaceholderItems);
22 QSize sizeHint(
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
24 void commitData(QWidget *editor)
const;
27 bool m_editableItemCombo =
false;
28 bool m_showPlaceholderItems =
false;