Undo/Redo action for removing calculations. More...
#include <FdCommandsResults.hpp>

Public Member Functions | |
| FdResultsRemove (FdModelResults *model, QList< int > rows) | |
| FdResultsRemove (FdModelResults *model, QList< locationResults > location) | |
| void | redo () |
| void | undo () |
Private Member Functions | |
| void | init () |
Private Attributes | |
| FdModelResults * | mModel |
| QList< locationResults > | mMap |
Undo/Redo action for removing calculations.
This QUndoCommand make it possible to undo/redo suppression of rows.
The constructor will get a QList of pointers to the corresponding FdItemResults. Index of calculations is neither absolute nor user defined. We store old items with the correspond rows in mMap, a QList of locationResults.
Definition at line 93 of file FdCommandsResults.hpp.
| FdResultsRemove::FdResultsRemove | ( | FdModelResults * | model, |
| QList< int > | rows | ||
| ) |
Definition at line 104 of file FdCommandsResults.cpp.
| FdResultsRemove::FdResultsRemove | ( | FdModelResults * | model, |
| QList< locationResults > | location | ||
| ) |
Definition at line 117 of file FdCommandsResults.cpp.
|
private |
Definition at line 123 of file FdCommandsResults.cpp.
| void FdResultsRemove::redo | ( | ) |
Definition at line 128 of file FdCommandsResults.cpp.
| void FdResultsRemove::undo | ( | ) |
Definition at line 134 of file FdCommandsResults.cpp.
|
private |
Definition at line 103 of file FdCommandsResults.hpp.
|
private |
Definition at line 102 of file FdCommandsResults.hpp.
1.8.1.2