OpenMW
|
Integer value that represents an enum and is interacted with via a combobox. More...
#include <enumdelegate.hpp>
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 |
Integer value that represents an enum and is interacted with via a combobox.
CSVWorld::EnumDelegate::EnumDelegate | ( | const std::vector< std::pair< int, QString > > & | values, |
QUndoStack & | undoStack, | ||
QObject * | parent | ||
) |
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.
std::vector<std::pair<int, QString> > CSVWorld::EnumDelegate::mValues [protected] |