Crossfire Server, Trunk
CREMessageTypeDelegate Class Reference
+ Inheritance diagram for CREMessageTypeDelegate:
+ Collaboration diagram for CREMessageTypeDelegate:

Public Member Functions

virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const override
 
 CREMessageTypeDelegate (QObject *parent)
 
virtual void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
virtual void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
virtual void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const override
 

Detailed Description

Small delegate to handle edition of the reply type field.

Definition at line 22 of file CREPlayerRepliesPanel.cpp.

Constructor & Destructor Documentation

◆ CREMessageTypeDelegate()

CREMessageTypeDelegate::CREMessageTypeDelegate ( QObject *  parent)
inline

Definition at line 25 of file CREPlayerRepliesPanel.cpp.

Member Function Documentation

◆ createEditor()

virtual QWidget* CREMessageTypeDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  ,
const QModelIndex &   
) const
inlineoverridevirtual

Definition at line 29 of file CREPlayerRepliesPanel.cpp.

References say::box, get_reply_text_own(), rt_question, rt_reply, and rt_say.

+ Here is the call graph for this function:

◆ setEditorData()

virtual void CREMessageTypeDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
inlineoverridevirtual

Definition at line 38 of file CREPlayerRepliesPanel.cpp.

References say::box, and npc_dialog::index.

◆ setModelData()

virtual void CREMessageTypeDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
inlineoverridevirtual

Definition at line 47 of file CREPlayerRepliesPanel.cpp.

References say::box, and npc_dialog::index.

◆ updateEditorGeometry()

virtual void CREMessageTypeDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &   
) const
inlineoverridevirtual

Definition at line 55 of file CREPlayerRepliesPanel.cpp.

References say::box, and CFweardisguise::option.


The documentation for this class was generated from the following file: