VPTissue Reference Manual
|
Undo command that represents a single removal operation of rows from a PTreeModel. More...
#include <PTreeUndoCommands.h>
Public Member Functions | |
RemoveRowsCommand (PTreeModel *m, Item *parent, QModelIndex const &parent_index, int row, int count) | |
virtual void | redo () |
See QUndoCommand documentation for details. | |
virtual void | undo () |
See QUndoCommand documentation for details. | |
Undo command that represents a single removal operation of rows from a PTreeModel.
See QUndoCommand documentation for details.
Definition at line 158 of file PTreeUndoCommands.h.
SimShell::Gui::PTreeModel::RemoveRowsCommand::RemoveRowsCommand | ( | PTreeModel * | m, |
Item * | parent, | ||
QModelIndex const & | parent_index, | ||
int | row, | ||
int | count | ||
) |
m | Model in which the operation happened. |
parent | Parent item from which rows were removed. |
parent_index | QModelIndex referring to parent item. (necessary to emit beginRemoveRows() and endRemoveRows() signals during undo() and redo()) |
row | Index of first row of removed rows in parent. |
count | Number of rows that were removed. |
Definition at line 131 of file PTreeUndoCommands.cpp.