The ModelIndexCommand class Change a data of an index of QAbstractItemModel.
More...
#include <itemmodelcommand.h>
Inherits QUndoCommand.
The ModelIndexCommand class Change a data of an index of QAbstractItemModel.
◆ ModelIndexCommand()
ModelIndexCommand::ModelIndexCommand |
( |
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ redo()
void ModelIndexCommand::redo |
( |
| ) |
|
|
overridevirtual |
◆ setData()
void ModelIndexCommand::setData |
( |
const QVariant & |
value, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| |
◆ undo()
void ModelIndexCommand::undo |
( |
| ) |
|
|
overridevirtual |
◆ m_index
QModelIndex ModelIndexCommand::m_index |
|
private |
◆ m_model
QPointer<QAbstractItemModel> ModelIndexCommand::m_model |
|
private |
◆ m_new_value
QVariant ModelIndexCommand::m_new_value |
|
private |
◆ m_old_value
QVariant ModelIndexCommand::m_old_value |
|
private |
◆ m_role
int ModelIndexCommand::m_role =0 |
|
private |
The documentation for this class was generated from the following files: