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