OpenMW
Public Member Functions | Protected Attributes | Private Member Functions
CSVWorld::EnumDelegate Class Reference

Integer value that represents an enum and is interacted with via a combobox. More...

#include <enumdelegate.hpp>

List of all members.

Public Member Functions

 EnumDelegate (const std::vector< std::pair< int, QString > > &values, QUndoStack &undoStack, QObject *parent)
virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
virtual void setEditorData (QWidget *editor, const QModelIndex &index) const
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const

Protected Attributes

std::vector< std::pair< int,
QString > > 
mValues

Private Member Functions

virtual void setModelDataImp (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
virtual void addCommands (QAbstractItemModel *model, const QModelIndex &index, int type) const

Detailed Description

Integer value that represents an enum and is interacted with via a combobox.


Constructor & Destructor Documentation

CSVWorld::EnumDelegate::EnumDelegate ( const std::vector< std::pair< int, QString > > &  values,
QUndoStack &  undoStack,
QObject *  parent 
)

Member Function Documentation

void CSVWorld::EnumDelegate::addCommands ( QAbstractItemModel *  model,
const QModelIndex &  index,
int  type 
) const [private, virtual]

Reimplemented in CSVWorld::VarTypeDelegate.

QWidget * CSVWorld::EnumDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const [virtual]

Reimplemented from CSVWorld::CommandDelegate.

void CSVWorld::EnumDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const [virtual]

Reimplemented in CSVWorld::DataDisplayDelegate.

void CSVWorld::EnumDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const [virtual]
void CSVWorld::EnumDelegate::setModelDataImp ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const [private, virtual]

Reimplemented from CSVWorld::CommandDelegate.


Member Data Documentation

std::vector<std::pair<int, QString> > CSVWorld::EnumDelegate::mValues [protected]

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