VPTissue Reference Manual
|
Undo command that represents a single edit operation for a key value of PTreeModel. More...
#include <PTreeUndoCommands.h>
Public Member Functions | |
EditKeyCommand (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 key value of PTreeModel.
Definition at line 33 of file PTreeUndoCommands.h.
SimShell::Gui::PTreeModel::EditKeyCommand::EditKeyCommand | ( | 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 key was edited. |
x | QModelIndex referring to item of which key was edited. (necessary to emit dataChanged() during undo() and redo()) |
old_value | Value of key before it was edited. |
new_value | New value that was given to key. |
Definition at line 29 of file PTreeUndoCommands.cpp.