Crossfire Server, Trunk
CREStringListDelegate Class Reference

#include <CREStringListDelegate.h>

+ Inheritance diagram for CREStringListDelegate:
+ Collaboration diagram for CREStringListDelegate:

Public Member Functions

virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
 CREStringListDelegate (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 &index) const override
 
virtual ~CREStringListDelegate ()
 

Detailed Description

Delegate allowing edition of a list of strings.

Definition at line 9 of file CREStringListDelegate.h.

Constructor & Destructor Documentation

◆ CREStringListDelegate()

CREStringListDelegate::CREStringListDelegate ( QObject *  parent)

Definition at line 4 of file CREStringListDelegate.cpp.

◆ ~CREStringListDelegate()

CREStringListDelegate::~CREStringListDelegate ( )
virtual

Definition at line 8 of file CREStringListDelegate.cpp.

Member Function Documentation

◆ createEditor()

QWidget * CREStringListDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
overridevirtual

Definition at line 12 of file CREStringListDelegate.cpp.

◆ setEditorData()

void CREStringListDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
overridevirtual

Definition at line 17 of file CREStringListDelegate.cpp.

References npc_dialog::index, and CREStringListPanel::setData().

+ Here is the call graph for this function:

◆ setModelData()

void CREStringListDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
overridevirtual

Definition at line 25 of file CREStringListDelegate.cpp.

References CREStringListPanel::data(), and npc_dialog::index.

+ Here is the call graph for this function:

◆ updateEditorGeometry()

void CREStringListDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
overridevirtual

Definition at line 33 of file CREStringListDelegate.cpp.

References ring_occidental_mages::r.


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