#include <util.hpp>
|
| CommandDelegate (CSMWorld::CommandDispatcher *commandDispatcher, CSMDoc::Document &document, 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 |
|
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index, CSMWorld::ColumnBase::Display display) const |
|
void | setEditLock (bool locked) |
|
bool | isEditLocked () const |
|
virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const |
|
virtual void | setEditorData (QWidget *editor, const QModelIndex &index, bool tryDisplay) const |
|
virtual void | settingChanged (const CSMPrefs::Setting *setting) |
|
- Parameters
-
commandDispatcher | If CommandDelegate will be only be used on read-only cells, a 0-pointer can be passed here. |
QWidget * CSVWorld::CommandDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
QUndoStack & CSVWorld::CommandDelegate::getUndoStack |
( |
| ) |
const |
|
protected |
bool CSVWorld::CommandDelegate::isEditLocked |
( |
| ) |
const |
- Returns
- Does column require update?
void CSVWorld::CommandDelegate::setEditLock |
( |
bool |
locked | ) |
|
void CSVWorld::CommandDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
void CSVWorld::CommandDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index, |
|
|
bool |
tryDisplay |
|
) |
| const |
|
virtual |
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 |
|
protectedvirtual |
- Attention
- This is not a slot. For ordering reasons this function needs to be called manually from the parent object's settingChanged function.
Reimplemented in CSVWorld::DataDisplayDelegate.
bool CSVWorld::CommandDelegate::mEditLock |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/apps/opencs/view/world/util.hpp
- /home/travis/build/OpenMW/openmw/apps/opencs/view/world/util.cpp