VPTissue Reference Manual
SimShell::Gui::PTreeModel::EditDataCommand Class Reference

Undo command that represents a single edit operation for a data value of PTreeModel. More...

#include <PTreeUndoCommands.h>

Inheritance diagram for SimShell::Gui::PTreeModel::EditDataCommand:
Inheritance graph
Collaboration diagram for SimShell::Gui::PTreeModel::EditDataCommand:
Collaboration graph

Public Member Functions

 EditDataCommand (PTreeModel *m, Item *i, QModelIndex const &x, QVariant const &old_value, QVariant const &new_value)
 
virtual void redo ()
 See QUndoCommand documentation for details.
 
virtual void undo ()
 See QUndoCommand documentation for details.
 

Detailed Description

Undo command that represents a single edit operation for a data value of PTreeModel.

Definition at line 69 of file PTreeUndoCommands.h.

Constructor & Destructor Documentation

SimShell::Gui::PTreeModel::EditDataCommand::EditDataCommand ( PTreeModel m,
Item *  i,
QModelIndex const &  x,
QVariant const &  old_value,
QVariant const &  new_value 
)
Parameters
mModel in which the operation happened.
iItem of which the data value was edited.
xQModelIndex referring to item of which data was edited. (necessary to emit dataChanged() during undo() and redo())
old_valueValue of data before it was edited.
new_valueNew value that was given to data.

Definition at line 52 of file PTreeUndoCommands.cpp.


The documentation for this class was generated from the following files: