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

Undo command that represents a single move operation of rows inside a PTreeModel. More...

#include <PTreeUndoCommands.h>

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

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

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 
)
Parameters
mModel in which the operation happened.
old_parentParent item from which rows were moved.
old_parent_indexQModelIndex referring to old parent item. (necessary to emit signals during undo() and redo())
old_rowOld row.
new_parentParent item into which rows were moved.
new_parent_indexQModelIndex referring to new parent item. (necessary to emit signals during undo() and redo())
new_rowNew row.
countNumber of rows that were moved.

Definition at line 172 of file PTreeUndoCommands.cpp.


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