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

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

#include <PTreeUndoCommands.h>

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

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.
 

Detailed Description

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

Definition at line 33 of file PTreeUndoCommands.h.

Constructor & Destructor Documentation

SimShell::Gui::PTreeModel::EditKeyCommand::EditKeyCommand ( 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 key was edited.
xQModelIndex referring to item of which key was edited. (necessary to emit dataChanged() during undo() and redo())
old_valueValue of key before it was edited.
new_valueNew value that was given to key.

Definition at line 29 of file PTreeUndoCommands.cpp.


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