QXRD  0.11.16
qxrdroitypedelegate.h
Go to the documentation of this file.
1 #ifndef QXRDROITYPEDELEGATE_H
2 #define QXRDROITYPEDELEGATE_H
3 
4 #include <QStyledItemDelegate>
5 
6 class QxrdROITypeDelegate : public QStyledItemDelegate
7 {
8  Q_OBJECT
9 
10 public:
11  QxrdROITypeDelegate(QWidget *parent=0);
12 
13  QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
14  const QModelIndex &index) const Q_DECL_OVERRIDE;
15  void setEditorData(QWidget *editor, const QModelIndex &index) const Q_DECL_OVERRIDE;
16  void setModelData(QWidget *editor, QAbstractItemModel *model,
17  const QModelIndex &index) const Q_DECL_OVERRIDE;
18 signals:
19 
20 public slots:
21 
22 private slots:
23  void typeChanged(int newType);
24 };
25 
26 #endif // QXRDROITYPEDELEGATE_H
QxrdROITypeDelegate(QWidget *parent=0)
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE
void setEditorData(QWidget *editor, const QModelIndex &index) const Q_DECL_OVERRIDE
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const Q_DECL_OVERRIDE
void typeChanged(int newType)