![]() |
VPTissue Reference Manual
|
Undo command that represents a single edit operation for a data value of PTreeModel. More...
#include <PTreeUndoCommands.h>


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. | |
Undo command that represents a single edit operation for a data value of PTreeModel.
Definition at line 69 of file PTreeUndoCommands.h.
| SimShell::Gui::PTreeModel::EditDataCommand::EditDataCommand | ( | PTreeModel * | m, |
| Item * | i, | ||
| QModelIndex const & | x, | ||
| QVariant const & | old_value, | ||
| QVariant const & | new_value | ||
| ) |
| m | Model in which the operation happened. |
| i | Item of which the data value was edited. |
| x | QModelIndex referring to item of which data was edited. (necessary to emit dataChanged() during undo() and redo()) |
| old_value | Value of data before it was edited. |
| new_value | New value that was given to data. |
Definition at line 52 of file PTreeUndoCommands.cpp.