HM-SPMS/product/src/gui/plugin/BatchOperation/CBatchOpeDelegate.h

21 lines
632 B
C++

#ifndef CBATCHOPEDELEGATE_H
#define CBATCHOPEDELEGATE_H
#include <QItemDelegate>
#include <QComboBox>
#include <QLineEdit>
#include <QStyledItemDelegate>
class CBatchOpeDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
CBatchOpeDelegate(QObject *parent = nullptr);
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
void setEditorData(QWidget *editor, const QModelIndex &index) const override;
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
};
#endif // CBATCHOPEDELEGATE_H