26 lines
575 B
C
26 lines
575 B
C
|
|
#ifndef PARAMTYPEDELEGATE_H
|
|||
|
|
#define PARAMTYPEDELEGATE_H
|
|||
|
|
|
|||
|
|
#include <QStyledItemDelegate>
|
|||
|
|
|
|||
|
|
class TypeSelectionItemModel;
|
|||
|
|
|
|||
|
|
/** Item delegate for supplying a combobox for selected the parameter type in
|
|||
|
|
* the parameter list.
|
|||
|
|
*/
|
|||
|
|
class ParamTypeDelegate : public QStyledItemDelegate
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
public:
|
|||
|
|
ParamTypeDelegate();
|
|||
|
|
~ParamTypeDelegate();
|
|||
|
|
|
|||
|
|
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
|
|||
|
|
const QModelIndex &index) const override;
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
TypeSelectionItemModel* m_typeSelectionModel = nullptr;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif // PARAMTYPEDELEGATE_H
|