![]() |
VPTissue Reference Manual
|
Undo command that represents a single insertion operation of rows into a PTreeModel. More...
#include <PTreeUndoCommands.h>


Public Member Functions | |
| InsertRowsCommand (PTreeModel *m, Item *parent, QModelIndex const &parent_index, int row, int count) | |
| InsertRowsCommand (PTreeModel *m, Item *parent, QModelIndex const &parent_index, int row, boost::property_tree::ptree const &t) | |
| virtual void | redo () |
| See QUndoCommand documentation for details. | |
| virtual void | undo () |
| See QUndoCommand documentation for details. | |
Undo command that represents a single insertion operation of rows into a PTreeModel.
See QUndoCommand documentation for details.
Definition at line 106 of file PTreeUndoCommands.h.
| SimShell::Gui::PTreeModel::InsertRowsCommand::InsertRowsCommand | ( | PTreeModel * | m, |
| Item * | parent, | ||
| QModelIndex const & | parent_index, | ||
| int | row, | ||
| int | count | ||
| ) |
| m | Model in which the operation happened. |
| parent | Parent item into which rows were inserted. |
| parent_index | QModelIndex referring to parent item. (necessary to emit beginInsertRows() and endInsertRows() signals during undo() and redo()) |
| row | Index of row in parent before which rows were inserted. |
| count | Number of rows that were inserted. |
Definition at line 75 of file PTreeUndoCommands.cpp.
| SimShell::Gui::PTreeModel::InsertRowsCommand::InsertRowsCommand | ( | PTreeModel * | m, |
| Item * | parent, | ||
| QModelIndex const & | parent_index, | ||
| int | row, | ||
| boost::property_tree::ptree const & | t | ||
| ) |
| m | Model in which the operation happened. |
| parent | Parent item into which rows were inserted. |
| parent_index | QModelIndex referring to parent item. (necessary to emit beginInsertRows() and endInsertRows() signals during undo() and redo()) |
| row | Index of row in parent before which rows were inserted. |
| t | ptree object of which the children represent the rows that were inserted. |