Marlin  01.17.01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
paramdelegate.h
Go to the documentation of this file.
1 #ifndef PARAMDELEGATE_H
2 #define PARAMDELEGATE_H
3 
11 #include <QItemDelegate>
12 
13 #include "marlin/CCProcessor.h"
14 
15 class QTableWidget;
16 
17 using namespace marlin;
18 
20 {
21  Q_OBJECT
22 
23 public:
24  ParamDelegate(const ParamDelegate&) = default ;
25  ParamDelegate& operator=(const ParamDelegate&) = default ;
26  ParamDelegate(CCProcessor* p, QObject *parent = 0);
27 
28  QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
29  void setEditorData(QWidget *editor, const QModelIndex &index) const;
30  void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
31 
32 private:
33  CCProcessor* _p{};
34  QTableWidget* _parent{};
35 };
36 
37 #endif
handles information about marlin processors and their collections needed by MarlinSteerCheck ...
Definition: CCProcessor.h:39