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 21 of file CREStringListDelegate.h.

Constructor & Destructor Documentation

◆ CREStringListDelegate()

CREStringListDelegate::CREStringListDelegate ( QObject *  parent)

Definition at line 16 of file CREStringListDelegate.cpp.

◆ ~CREStringListDelegate()

CREStringListDelegate::~CREStringListDelegate ( )
virtual

Definition at line 20 of file CREStringListDelegate.cpp.

Member Function Documentation

◆ createEditor()

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

Definition at line 24 of file CREStringListDelegate.cpp.

◆ setEditorData()

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

Definition at line 29 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 37 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 45 of file CREStringListDelegate.cpp.

References ring_occidental_mages::r.


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