|
wiRedPanda
Logic Circuit Simulator
|
Undo command that removes a list of items from the scene. More...
#include <Commands.h>
Public Member Functions | |
| DeleteItemsCommand (const QList< QGraphicsItem * > &items, Scene *scene, QUndoCommand *parent=nullptr) | |
| Constructs the command for deleting items. | |
| void | redo () override |
| Removes the items from the scene. | |
| void | undo () override |
| Restores the items to the scene. | |
Undo command that removes a list of items from the scene.
Definition at line 97 of file Commands.h.
|
explicit |
Constructs the command for deleting items.
| items | List of QGraphicsItems to remove. |
| scene | Target scene. |
| parent | Optional parent undo command. |
Definition at line 304 of file Commands.cpp.
References CommandUtils::loadList().
|
override |
Removes the items from the scene.
Definition at line 320 of file Commands.cpp.
References CommandUtils::deleteItems(), CommandUtils::findItems(), qCDebug, and CommandUtils::saveItems().
|
override |
Restores the items to the scene.
Definition at line 312 of file Commands.cpp.
References CommandUtils::loadItems(), and qCDebug.