Marlin  01.17.01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
aprocdelegate.h
Go to the documentation of this file.
1 #ifndef APROCDELEGATE_H
2 #define APROCDELEGATE_H
3 
11 #include <QItemDelegate>
12 
14 {
15  Q_OBJECT
16 
17 public:
18  AProcDelegate(const AProcDelegate&) = default ;
19  AProcDelegate& operator=(const AProcDelegate&) = default ;
20 
21  AProcDelegate(QObject *parent = 0);
22 
23  QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
24  void setEditorData(QWidget *editor, const QModelIndex &index) const;
25  void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
26 
27 private:
28  QObject* _parent{};
29 };
30 
31 #endif
AProcDelegate(const AProcDelegate &)=default
@ class Small delegate class for changing active processor&#39;s names
Definition: aprocdelegate.h:13
void setEditorData(QWidget *editor, const QModelIndex &index) const
AProcDelegate & operator=(const AProcDelegate &)=default
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
QObject * _parent
Definition: aprocdelegate.h:28
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const