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

Undo command that represents a single removal operation of rows from a PTreeModel. More...

#include <PTreeUndoCommands.h>

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

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

SimShell::Gui::PTreeModel::RemoveRowsCommand::RemoveRowsCommand ( PTreeModel m,
Item *  parent,
QModelIndex const &  parent_index,
int  row,
int  count 
)
Parameters
mModel in which the operation happened.
parentParent item from which rows were removed.
parent_indexQModelIndex referring to parent item. (necessary to emit beginRemoveRows() and endRemoveRows() signals during undo() and redo())
rowIndex of first row of removed rows in parent.
countNumber of rows that were removed.

Definition at line 131 of file PTreeUndoCommands.cpp.


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