You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
745 B
C++
25 lines
745 B
C++
#ifndef CPARTLISTITEMDELEGATE_H
|
|
#define CPARTLISTITEMDELEGATE_H
|
|
|
|
|
|
#include <QStyledItemDelegate>
|
|
#include <QStandardItem>
|
|
|
|
|
|
class cPartListItemDelegate : public QStyledItemDelegate
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
cPartListItemDelegate(QObject* parent = 0);
|
|
~cPartListItemDelegate();
|
|
|
|
virtual QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
|
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const;
|
|
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
|
|
virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
|
|
|
signals:
|
|
};
|
|
|
|
#endif // CPARTLISTITEMDELEGATE_H
|