Crossfire Server, Trunk
CREPlayerRepliesDelegate.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef CREPLAYERREPLIESDELEGATE_H
14 #define CREPLAYERREPLIESDELEGATE_H
15 
16 #include <QStyledItemDelegate>
17 
21 class CREPlayerRepliesDelegate : public QStyledItemDelegate
22 {
23 public:
24  CREPlayerRepliesDelegate(QObject* parent);
25  virtual ~CREPlayerRepliesDelegate();
26 
27  virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
28  virtual void setEditorData(QWidget* editor, const QModelIndex& index) const override;
29  virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const override;
30  virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
31 
32 private:
33 
34 };
35 
36 #endif /* CREPLAYERREPLIESDELEGATE_H */
37 
CREPlayerRepliesDelegate::~CREPlayerRepliesDelegate
virtual ~CREPlayerRepliesDelegate()
Definition: CREPlayerRepliesDelegate.cpp:22
CREPlayerRepliesDelegate::createEditor
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition: CREPlayerRepliesDelegate.cpp:26
CREPlayerRepliesDelegate::updateEditorGeometry
virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition: CREPlayerRepliesDelegate.cpp:47
CREPlayerRepliesDelegate
Definition: CREPlayerRepliesDelegate.h:21
CFweardisguise.option
option
Definition: CFweardisguise.py:16
npc_dialog.index
int index
Definition: npc_dialog.py:102
CREPlayerRepliesDelegate::setModelData
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Definition: CREPlayerRepliesDelegate.cpp:39
CREPlayerRepliesDelegate::CREPlayerRepliesDelegate
CREPlayerRepliesDelegate(QObject *parent)
Definition: CREPlayerRepliesDelegate.cpp:18
CREPlayerRepliesDelegate::setEditorData
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const override
Definition: CREPlayerRepliesDelegate.cpp:31