Marlin  01.17.01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
iprocdelegate.h
Go to the documentation of this file.
1 #ifndef IPROCDELEGATE_H
2 #define IPROCDELEGATE_H
3 
11 #include <QItemDelegate>
12 
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
IProcDelegate & operator=(const IProcDelegate &)=default
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
@ class Small delegate class for changing inactive processor&#39;s names
Definition: iprocdelegate.h:13
QObject * _parent
Definition: iprocdelegate.h:27
void setEditorData(QWidget *editor, const QModelIndex &index) const
IProcDelegate(const IProcDelegate &)=default