Restructured locations of source.
This commit is contained in:
parent
78a4c6d730
commit
7c4e8e95e8
151 changed files with 1 additions and 0 deletions
30
src/pglab/ParamTypeDelegate.h
Normal file
30
src/pglab/ParamTypeDelegate.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#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;
|
||||
void setTypeSelectionModel(TypeSelectionItemModel* model);
|
||||
void setEditorData(QWidget *editor, const QModelIndex &index) const override;
|
||||
void setModelData(QWidget *editor, QAbstractItemModel *model,
|
||||
const QModelIndex &index) const override;
|
||||
private:
|
||||
TypeSelectionItemModel* m_typeSelectionModel = nullptr;
|
||||
|
||||
private slots:
|
||||
void commitAndCloseEditor();
|
||||
};
|
||||
|
||||
#endif // PARAMTYPEDELEGATE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue