VPTissue Reference Manual
|
Undo command that represents a single move operation of rows inside a PTreeModel. More...
#include <PTreeUndoCommands.h>
Public Member Functions | |
MoveRowsCommand (PTreeModel *m, Item *old_parent, QModelIndex const &old_parent_index, int old_row, Item *new_parent, QModelIndex const &new_parent_index, int new_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 move operation of rows inside a PTreeModel.
See QUndoCommand documentation for details.
Definition at line 197 of file PTreeUndoCommands.h.
SimShell::Gui::PTreeModel::MoveRowsCommand::MoveRowsCommand | ( | PTreeModel * | m, |
Item * | old_parent, | ||
QModelIndex const & | old_parent_index, | ||
int | old_row, | ||
Item * | new_parent, | ||
QModelIndex const & | new_parent_index, | ||
int | new_row, | ||
int | count | ||
) |
m | Model in which the operation happened. |
old_parent | Parent item from which rows were moved. |
old_parent_index | QModelIndex referring to old parent item. (necessary to emit signals during undo() and redo()) |
old_row | Old row. |
new_parent | Parent item into which rows were moved. |
new_parent_index | QModelIndex referring to new parent item. (necessary to emit signals during undo() and redo()) |
new_row | New row. |
count | Number of rows that were moved. |
Definition at line 172 of file PTreeUndoCommands.cpp.