Crossfire Server, Trunk
CREStringListDelegate.h
Go to the documentation of this file.
1 #ifndef CRESTRINGLISTDELEGATE_H
2 #define CRESTRINGLISTDELEGATE_H
3 
4 #include <QtWidgets>
5 
9 class CREStringListDelegate : public QStyledItemDelegate
10 {
11 public:
12  CREStringListDelegate(QObject* parent);
13  virtual ~CREStringListDelegate();
14 
15  virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
16  virtual void setEditorData(QWidget* editor, const QModelIndex& index) const override;
17  virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const override;
18  virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
19 };
20 
21 #endif /* CRESTRINGLISTDELEGATE_H */
CREStringListDelegate
Definition: CREStringListDelegate.h:9
CREStringListDelegate::updateEditorGeometry
virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition: CREStringListDelegate.cpp:33
CREStringListDelegate::setEditorData
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const override
Definition: CREStringListDelegate.cpp:17
CREStringListDelegate::CREStringListDelegate
CREStringListDelegate(QObject *parent)
Definition: CREStringListDelegate.cpp:4
CREStringListDelegate::setModelData
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Definition: CREStringListDelegate.cpp:25
CFweardisguise.option
option
Definition: CFweardisguise.py:16
npc_dialog.index
int index
Definition: npc_dialog.py:102
CREStringListDelegate::createEditor
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition: CREStringListDelegate.cpp:12
CREStringListDelegate::~CREStringListDelegate
virtual ~CREStringListDelegate()
Definition: CREStringListDelegate.cpp:8