Marlin  1.17.1
 All Classes Namespaces Functions Variables Enumerations Friends Pages
iprocdelegate.h
1 #ifndef IPROCDELEGATE_H
2 #define IPROCDELEGATE_H
3 
11 #include <QItemDelegate>
12 
13 class IProcDelegate : public QItemDelegate
14 {
15  Q_OBJECT
16 
17 public:
18  IProcDelegate(const IProcDelegate&) = default ;
19  IProcDelegate& operator=(const IProcDelegate&) = default ;
20  IProcDelegate(QObject *parent = 0);
21 
22  QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
23  void setEditorData(QWidget *editor, const QModelIndex &index) const;
24  void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
25 
26 private:
27  QObject* _parent{};
28 };
29 
30 #endif
@ class Small delegate class for changing inactive processor&#39;s names
Definition: iprocdelegate.h:13