Marlin  1.17.1
 All Classes Namespaces Functions Variables Enumerations Friends Pages
aprocdelegate.h
1 #ifndef APROCDELEGATE_H
2 #define APROCDELEGATE_H
3 
11 #include <QItemDelegate>
12 
13 class AProcDelegate : public QItemDelegate
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
@ class Small delegate class for changing active processor&#39;s names
Definition: aprocdelegate.h:13