OpenMW
|
#include <util.hpp>
Public Member Functions | |
CommandDelegate (QUndoStack &undoStack, QObject *parent) | |
virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
void | setEditLock (bool locked) |
bool | isEditLocked () const |
virtual bool | updateEditorSetting (const QString &settingName, const QString &settingValue) |
Protected Member Functions | |
QUndoStack & | getUndoStack () const |
virtual void | setModelDataImp (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
Private Slots | |
virtual void | slotUpdateEditorSetting (const QString &settingName, const QString &settingValue) |
Private Attributes | |
QUndoStack & | mUndoStack |
bool | mEditLock |
CSVWorld::CommandDelegate::CommandDelegate | ( | QUndoStack & | undoStack, |
QObject * | parent | ||
) |
QWidget * CSVWorld::CommandDelegate::createEditor | ( | QWidget * | parent, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const [virtual] |
Reimplemented in CSVWorld::EnumDelegate.
QUndoStack & CSVWorld::CommandDelegate::getUndoStack | ( | ) | const [protected] |
bool CSVWorld::CommandDelegate::isEditLocked | ( | ) | const |
void CSVWorld::CommandDelegate::setEditLock | ( | bool | locked | ) |
void CSVWorld::CommandDelegate::setModelData | ( | QWidget * | editor, |
QAbstractItemModel * | model, | ||
const QModelIndex & | index | ||
) | const [virtual] |
void CSVWorld::CommandDelegate::setModelDataImp | ( | QWidget * | editor, |
QAbstractItemModel * | model, | ||
const QModelIndex & | index | ||
) | const [protected, virtual] |
Reimplemented in CSVWorld::EnumDelegate.
virtual void CSVWorld::CommandDelegate::slotUpdateEditorSetting | ( | const QString & | settingName, |
const QString & | settingValue | ||
) | [inline, private, virtual, slot] |
bool CSVWorld::CommandDelegate::updateEditorSetting | ( | const QString & | settingName, |
const QString & | settingValue | ||
) | [virtual] |
Reimplemented in CSVWorld::RecordStatusDelegate, and CSVWorld::IdTypeDelegate.
bool CSVWorld::CommandDelegate::mEditLock [private] |
QUndoStack& CSVWorld::CommandDelegate::mUndoStack [private] |